Package fi.evolver.script
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
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
-