public interface IBooleanProperty
| Modifier and Type | Interface and Description |
|---|---|
static class |
IBooleanProperty.WithState
A simple implementation that holds its own state.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean()
Get the boolean value.
|
boolean |
isValidBoolean(boolean value)
Returns true if the boolean value is valid.
|
void |
setBoolean(boolean value)
Set the boolean value, regardless of it being a valid value or not.
|
default boolean |
trySetBoolean(boolean value)
Try to set the boolean value.
|
boolean getBoolean()
void setBoolean(boolean value)
value - the boolean valueboolean isValidBoolean(boolean value)
value - the boolean valuedefault boolean trySetBoolean(boolean value)
value - the boolean value