Record Class AnchorSidePair
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.AnchorSidePair
- Record Components:
fromSide- from side value used by the operationtoSide- to side value used by the operation
Pair of node sides used when resolving link anchors.
-
Constructor Summary
ConstructorsConstructorDescriptionAnchorSidePair(AnchorSide fromSide, AnchorSide toSide) Creates an instance of aAnchorSidePairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fromSide()Returns the value of thefromSiderecord component.final inthashCode()Returns a hash code value for this object.booleanChecks whether from vertical is enabled or applies on the active canvas.booleanChecks whether to vertical is enabled or applies on the active canvas.toSide()Returns the value of thetoSiderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isFromVertical
public boolean isFromVertical()Checks whether from vertical is enabled or applies on the active canvas.- Returns:
trueif from vertical is enabled or applies; otherwisefalse
-
isToVertical
public boolean isToVertical()Checks whether to vertical is enabled or applies on the active canvas.- Returns:
trueif to vertical is enabled or applies; otherwisefalse
-
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). -
fromSide
Returns the value of thefromSiderecord component.- Returns:
- the value of the
fromSiderecord component
-
toSide
Returns the value of thetoSiderecord component.- Returns:
- the value of the
toSiderecord component
-