public final class PropertyBoolean extends Object
PropertyBoolean.hasValue()
to test whether the property has the value or not.Constructor and Description |
---|
PropertyBoolean(Boolean b)
Create the boolean property.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getValue()
Get the property value.
|
boolean |
getValueOr(boolean defaultValue)
Get the property value or the provided value when the property does not have one.
|
boolean |
hasValue()
Test whether the property has a value.
|
public PropertyBoolean(Boolean b)
b
- when null
, then the property is undefined.public boolean hasValue()
public boolean getValue()
false
.false
when not set.public boolean getValueOr(boolean defaultValue)
defaultValue
- The default value to return when the property is undefined.