Record Class Dialog.DialogCheckBox
java.lang.Object
java.lang.Record
fi.evolver.script.Dialog.DialogCheckBox
- All Implemented Interfaces:
Dialog.DialogEntry
- Enclosing class:
Dialog
public static record Dialog.DialogCheckBox(String label, boolean defaultValue)
extends Record
implements Dialog.DialogEntry
-
Constructor Summary
ConstructorsConstructorDescriptionDialogCheckBox(String label, boolean defaultValue) Creates an instance of aDialogCheckBoxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DialogCheckBox
Creates an instance of aDialogCheckBoxrecord class.- Parameters:
label- the value for thelabelrecord componentdefaultValue- the value for thedefaultValuerecord 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. -
label
Returns the value of thelabelrecord component.- Specified by:
labelin interfaceDialog.DialogEntry- Returns:
- the value of the
labelrecord component
-
defaultValue
public boolean defaultValue()Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-