Record Class SlotBinding
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.SlotBinding
One slot's view of one container index. A record: the shape is final.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SlotContainerThe field for thecontainerrecord component.private final intThe field for theindexrecord component.private final BindingModeThe field for themoderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSlotBinding(SlotContainer container, int index, BindingMode mode) Creates an instance of aSlotBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.mode()Returns the value of themoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
container
The field for thecontainerrecord component. -
index
private final int indexThe field for theindexrecord component. -
mode
The field for themoderecord component.
-
-
Constructor Details
-
SlotBinding
Creates an instance of aSlotBindingrecord class.- Parameters:
container- the value for thecontainerrecord componentindex- the value for theindexrecord componentmode- the value for themoderecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
container
Returns the value of thecontainerrecord component.- Returns:
- the value of the
containerrecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-