Record Class ClassSideKey
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.ClassSideKey
- Record Components:
classId- id of the class to look up or modifyside- node side to inspect
Cache key that identifies one side of one class node.
-
Constructor Summary
ConstructorsConstructorDescriptionClassSideKey(String classId, AnchorSide side) Creates an instance of aClassSideKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclassId()Returns the value of theclassIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanChecks whether vertical is enabled or applies on the active canvas.side()Returns the value of thesiderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isVertical
public boolean isVertical()Checks whether vertical is enabled or applies on the active canvas.- Returns:
trueif 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). -
classId
Returns the value of theclassIdrecord component.- Returns:
- the value of the
classIdrecord component
-
side
Returns the value of thesiderecord component.- Returns:
- the value of the
siderecord component
-