Record Class ButtonRole.Pick
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.dialog.ButtonRole.Pick
- Record Components:
index- zero-based option position
- All Implemented Interfaces:
ButtonRole
- Enclosing interface:
ButtonRole
Selects an option by display position.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ButtonRole
ButtonRole.Ack, ButtonRole.Cancel, ButtonRole.No, ButtonRole.Pick, ButtonRole.Submit, ButtonRole.Yes -
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.intindex()Returns the value of theindexrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
index
private final int indexThe field for theindexrecord component.
-
-
Constructor Details
-
Pick
public Pick(int index) Creates an instance of aPickrecord class.- Parameters:
index- the value for theindexrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
index
-