Record Class DialogModel.Single
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.dialog.DialogModel.Single
- Record Components:
key- input keylabel- rendered labeloptions- ordered options with positional wire identifiers
- All Implemented Interfaces:
DialogModel.Input
- Enclosing class:
DialogModel
@Internal
public static record DialogModel.Single(String key, net.kyori.adventure.text.Component label, List<DialogModel.Option> options)
extends Record
implements DialogModel.Input
Single-option control.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSingle(String key, net.kyori.adventure.text.Component label, List<DialogModel.Option> options) Copies options before publication. -
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.key()Returns the value of thekeyrecord component.net.kyori.adventure.text.Componentlabel()Returns the value of thelabelrecord component.options()Returns the value of theoptionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Single
public Single(String key, net.kyori.adventure.text.Component label, List<DialogModel.Option> options) Copies options before publication.
-
-
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 withObjects::equals(Object,Object). -
key
Returns the value of thekeyrecord component.- Specified by:
keyin interfaceDialogModel.Input- Returns:
- the value of the
keyrecord component
-
label
public net.kyori.adventure.text.Component label()Returns the value of thelabelrecord component.- Specified by:
labelin interfaceDialogModel.Input- Returns:
- the value of the
labelrecord component
-
options
-