public class OldGenModeProperty extends java.lang.Object implements BattleProperty<EnumOldGenMode>
| Constructor and Description |
|---|
OldGenModeProperty() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<PropertyValue<EnumOldGenMode>> |
getDefault()
Gets the default value when not supplied
If returning an empty optional this means it isn't always required
|
java.lang.String |
getId()
The id of the property
|
PropertyValue<EnumOldGenMode> |
getInstance()
Gets a new instanceof the
PropertyValue |
java.util.Optional<PropertyValue<EnumOldGenMode>> |
parse(java.lang.Object o)
Attempts to parse the object into a
PropertyValue
Will return Optional.empty() if fails to parse |
boolean |
requiredByClient()
If the property's value is required by the client for UI logic
|
public java.lang.String getId()
BattlePropertygetId in interface BattleProperty<EnumOldGenMode>public boolean requiredByClient()
BattlePropertyrequiredByClient in interface BattleProperty<EnumOldGenMode>public java.util.Optional<PropertyValue<EnumOldGenMode>> parse(java.lang.Object o)
BattlePropertyPropertyValue
Will return Optional.empty() if fails to parseparse in interface BattleProperty<EnumOldGenMode>o - The object being parsedPropertyValuepublic java.util.Optional<PropertyValue<EnumOldGenMode>> getDefault()
BattlePropertygetDefault in interface BattleProperty<EnumOldGenMode>Optional> public PropertyValue<EnumOldGenMode> getInstance()
BattlePropertyPropertyValuegetInstance in interface BattleProperty<EnumOldGenMode>