Record Class Gesture.Place
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.Gesture.Place
- All Implemented Interfaces:
Gesture
- Enclosing interface:
Gesture
-
Nested Class Summary
Nested classes/interfaces inherited from interface Gesture
Gesture.HotbarSwap, Gesture.Pickup, Gesture.Place, Gesture.QuickMoveIn, Gesture.QuickMoveOut, Gesture.Spread, Gesture.SwapWithCursor -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanone()Returns the value of theonerecord component.slot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
slot
The field for theslotrecord component. -
one
private final boolean oneThe field for theonerecord component.
-
-
Constructor Details
-
Place
Creates an instance of aPlacerecord class.- Parameters:
slot- the value for theslotrecord componentone- the value for theonerecord 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. -
slot
Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
one
public boolean one()Returns the value of theonerecord component.- Returns:
- the value of the
onerecord component
-