Module agentforge4j.core
Package com.agentforge4j.core.runtime
Record Class StepApprovalDecision.Approve
java.lang.Object
java.lang.Record
com.agentforge4j.core.runtime.StepApprovalDecision.Approve
- Record Components:
approvedBy- opaque id of the approver; never blanknote- optional human-readable note recorded on the event; may be blank
- All Implemented Interfaces:
StepApprovalDecision
- Enclosing interface:
- StepApprovalDecision
public static record StepApprovalDecision.Approve(String approvedBy, String note)
extends Record
implements StepApprovalDecision
Approve the step and advance the run.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.agentforge4j.core.runtime.StepApprovalDecision
StepApprovalDecision.Approve, StepApprovalDecision.Reject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapprovedByrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.note()Returns the value of thenoterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Approve
Creates an instance of aApproverecord class.- Parameters:
approvedBy- the value for theapprovedByrecord componentnote- the value for thenoterecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
approvedBy
Returns the value of theapprovedByrecord component.- Returns:
- the value of the
approvedByrecord component
-
note
Returns the value of thenoterecord component.- Returns:
- the value of the
noterecord component
-