Record Class SettingInput.Numeric
java.lang.Object
java.lang.Record
de.eldoria.schematicbrush.brush.config.provider.SettingInput.Numeric
- Record Components:
label- labelmin- lowest valuemax- highest valueinitial- initial value
- All Implemented Interfaces:
SettingInput
- Enclosing interface:
SettingInput
public static record SettingInput.Numeric(String label, int min, int max, int initial)
extends Record
implements SettingInput
A whole number within bounds.
-
Nested Class Summary
Nested classes/interfaces inherited from interface SettingInput
SettingInput.Choice, SettingInput.Numeric, SettingInput.Selection, SettingInput.Text, SettingInput.Toggle -
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.intinitial()Returns the value of theinitialrecord component.label()Returns the value of thelabelrecord component.intmax()Returns the value of themaxrecord component.intmin()Returns the value of theminrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 interfaceSettingInput- Returns:
- the value of the
labelrecord component
-
min
-
max
-
initial
-