Record Class TwoPhaseMoveState.TwoPhaseMove<T>
java.lang.Object
java.lang.Record
common.TwoPhaseMoveState.TwoPhaseMove<T>
- Type Parameters:
T
- represents the type of the source and the target of the moves- Record Components:
from
- represents where to move fromto
- represents where to move to
- Enclosing interface:
TwoPhaseMoveState<T>
-
Constructor Summary
ConstructorsConstructorDescriptionTwoPhaseMove
(T from, T to) Creates an instance of aTwoPhaseMove
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.to()
Returns the value of theto
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TwoPhaseMove
-
-
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
-
to
-