public abstract class AbstractBooleanProperty extends java.lang.Object implements BattleProperty<java.lang.Boolean>
Constructor and Description |
---|
AbstractBooleanProperty() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<PropertyValue<java.lang.Boolean>> |
getDefault()
Gets the default value when not supplied
If returning an empty optional this means it isn't always required
|
PropertyValue<java.lang.Boolean> |
getInstance()
Gets a new instanceof the
PropertyValue |
java.util.Optional<PropertyValue<java.lang.Boolean>> |
parse(java.lang.Object o)
Attempts to parse the object into a
PropertyValue
Will return Optional.empty() if fails to parse |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, requiredByClient
public java.util.Optional<PropertyValue<java.lang.Boolean>> parse(java.lang.Object o)
BattleProperty
PropertyValue
Will return Optional.empty()
if fails to parseparse
in interface BattleProperty<java.lang.Boolean>
o
- The object being parsedPropertyValue
public java.util.Optional<PropertyValue<java.lang.Boolean>> getDefault()
BattleProperty
getDefault
in interface BattleProperty<java.lang.Boolean>
Optional>
public PropertyValue<java.lang.Boolean> getInstance()
BattleProperty
PropertyValue
getInstance
in interface BattleProperty<java.lang.Boolean>