Package com.axelor.ai.procedure
Record Class ProcedureRunner.Answer
java.lang.Object
java.lang.Record
com.axelor.ai.procedure.ProcedureRunner.Answer
- Record Components:
source- the action that raised it, or the button for a promptmessage- the message as the user would read itaccepted- whether the run went onby- theinteractionsentry that answered, or null when none did
- Enclosing class:
ProcedureRunner
public static record ProcedureRunner.Answer(String source, String message, boolean accepted, String by)
extends Record
An alert met during the run, and how it was answered.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns the value of theacceptedrecord component.by()Returns the value of thebyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
accepted
public boolean accepted()Returns the value of theacceptedrecord component.- Returns:
- the value of the
acceptedrecord component
-
by
Returns the value of thebyrecord component.- Returns:
- the value of the
byrecord component
-