public class DStateBoolean extends DState<java.lang.Boolean>
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertToString(java.lang.Boolean value)
Convert the provided object to string.
|
java.util.Optional<java.lang.Boolean> |
getFrom(java.lang.String value)
Get an optional from the provided string.
|
java.util.Collection<java.lang.Boolean> |
getValues()
Get all the valid values that this state could take on.
|
static DStateBoolean |
of(java.lang.String id)
Create a new DStateBoolean with the provided id.
|
public java.lang.String convertToString(java.lang.Boolean value)
DStateconvertToString in class DState<java.lang.Boolean>value - The value that needs converting.public java.util.Optional<java.lang.Boolean> getFrom(java.lang.String value)
DStatepublic java.util.Collection<java.lang.Boolean> getValues()
DStatepublic static DStateBoolean of(java.lang.String id)
id -