public class SettingStateBoolean extends SettingState<java.lang.Boolean>
| Modifier | Constructor and Description |
|---|---|
protected |
SettingStateBoolean(java.lang.String id,
boolean isPrivate,
boolean defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertToString(java.lang.Boolean value)
Convert the provided object to string.
|
java.lang.Boolean |
getDefault()
Get the default object that would be provided normally
|
java.util.Optional<java.lang.Boolean> |
getFrom(java.lang.String value)
Get an optional from the provided string.
|
java.util.Collection<java.lang.String> |
getValues()
Get all the valid values that this state could take on.
|
static SettingStateBoolean |
of(java.lang.String id,
boolean isPrivate,
boolean defaultValue) |
equals, getId, getType, isPrivateprotected SettingStateBoolean(java.lang.String id,
boolean isPrivate,
boolean defaultValue)
public java.lang.String convertToString(java.lang.Boolean value)
SettingStateconvertToString in class SettingState<java.lang.Boolean>value - The value that needs converting.public java.util.Optional<java.lang.Boolean> getFrom(java.lang.String value)
SettingStategetFrom in class SettingState<java.lang.Boolean>value - A string representing a value of the object.public java.util.Collection<java.lang.String> getValues()
SettingStategetValues in class SettingState<java.lang.Boolean>public java.lang.Boolean getDefault()
SettingStategetDefault in class SettingState<java.lang.Boolean>public static SettingStateBoolean of(java.lang.String id, boolean isPrivate, boolean defaultValue)