Record Class TwoPhaseActionState.TwoPhaseAction<T,U>
java.lang.Object
java.lang.Record
spinhex.model.TwoPhaseActionState.TwoPhaseAction<T,U>
- Type Parameters:
T
- the type of the source elementU
- the type of the action- Record Components:
from
- the source element from which the action originatesaction
- the action to be performed from the source
- Enclosing interface:
TwoPhaseActionState<T,
U>
-
Constructor Summary
ConstructorsConstructorDescriptionTwoPhaseAction
(T from, U action) Creates an instance of aTwoPhaseAction
record class. -
Method Summary
Modifier and TypeMethodDescriptionaction()
Returns the value of theaction
record component.final boolean
Indicates whether some other object is "equal to" this one.from()
Returns the value of thefrom
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TwoPhaseAction
-
-
Method Details
-
toString
-
hashCode
-
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)
. -
from
-
action
-