Package com.axelor.workflow.plan
Record Class WorkflowPlan.JoinPolicy.Quorum
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.JoinPolicy.Quorum
- All Implemented Interfaces:
WorkflowPlan.JoinPolicy
- Enclosing interface:
WorkflowPlan.JoinPolicy
public static record WorkflowPlan.JoinPolicy.Quorum(int n)
extends Record
implements WorkflowPlan.JoinPolicy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axelor.workflow.plan.WorkflowPlan.JoinPolicy
WorkflowPlan.JoinPolicy.All, WorkflowPlan.JoinPolicy.Quorum -
Field Summary
Fields inherited from interface com.axelor.workflow.plan.WorkflowPlan.JoinPolicy
ALL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intn()Returns the value of thenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Quorum
public Quorum(int n) Creates an instance of aQuorumrecord class.- Parameters:
n- the value for thenrecord 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 with '=='. -
n
public int n()Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-