Record Class SettingInput.Text
java.lang.Object
java.lang.Record
de.eldoria.schematicbrush.brush.config.provider.SettingInput.Text
- Record Components:
label- labelinitial- initial textsuggestions- whether the editor offers the completions of the provider for this input
- All Implemented Interfaces:
SettingInput
- Enclosing interface:
SettingInput
public static record SettingInput.Text(String label, String initial, boolean suggestions)
extends Record
implements SettingInput
Free text.
-
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.initial()Returns the value of theinitialrecord component.label()Returns the value of thelabelrecord component.booleanReturns the value of thesuggestionsrecord component.final StringtoString()Returns a string representation of this record class.Offers the completions of the provider for this input.
-
Constructor Details
-
Text
Creates an instance of aTextrecord class.- Parameters:
label- the value for thelabelrecord componentinitial- the value for theinitialrecord componentsuggestions- the value for thesuggestionsrecord component
-
-
Method Details
-
withSuggestions
Offers the completions of the provider for this input. Use it where the completions are actual values, not placeholders.- Returns:
- input offering suggestions
-
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
-
initial
-
suggestions
public boolean suggestions()Returns the value of thesuggestionsrecord component.- Returns:
- the value of the
suggestionsrecord component
-