Package zombie.config
Class BooleanConfigOption
java.lang.Object
zombie.config.ConfigOption
zombie.config.BooleanConfigOption
- Direct Known Subclasses:
DebugOptions.BooleanDebugOption
,SandboxOptions.BooleanSandboxOption
,ServerOptions.BooleanServerOption
,ZombiePopulationRenderer.BooleanDebugOption
public class BooleanConfigOption extends ConfigOption
-
Field Summary
Fields Modifier and Type Field Description protected boolean
defaultValue
protected boolean
value
Fields inherited from class zombie.config.ConfigOption
name
-
Constructor Summary
Constructors Constructor Description BooleanConfigOption(java.lang.String string, boolean boolean1)
-
Method Summary
Modifier and Type Method Description boolean
getDefaultValue()
java.lang.String
getType()
boolean
getValue()
java.lang.Object
getValueAsObject()
java.lang.String
getValueAsString()
boolean
isValidString(java.lang.String string)
void
parse(java.lang.String string)
void
resetToDefault()
void
setDefaultToCurrentValue()
void
setValue(boolean boolean1)
void
setValueFromObject(java.lang.Object object)
Methods inherited from class zombie.config.ConfigOption
getName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
value
protected boolean value -
defaultValue
protected boolean defaultValue
-
-
Constructor Details
-
BooleanConfigOption
public BooleanConfigOption(java.lang.String string, boolean boolean1)
-
-
Method Details
-
getType
public java.lang.String getType()- Specified by:
getType
in classConfigOption
-
resetToDefault
public void resetToDefault()- Specified by:
resetToDefault
in classConfigOption
-
setDefaultToCurrentValue
public void setDefaultToCurrentValue()- Specified by:
setDefaultToCurrentValue
in classConfigOption
-
parse
public void parse(java.lang.String string)- Specified by:
parse
in classConfigOption
-
getValueAsString
public java.lang.String getValueAsString()- Specified by:
getValueAsString
in classConfigOption
-
setValueFromObject
public void setValueFromObject(java.lang.Object object)- Specified by:
setValueFromObject
in classConfigOption
-
getValueAsObject
public java.lang.Object getValueAsObject()- Specified by:
getValueAsObject
in classConfigOption
-
isValidString
public boolean isValidString(java.lang.String string)- Specified by:
isValidString
in classConfigOption
-
setValue
public void setValue(boolean boolean1) -
getValue
public boolean getValue() -
getDefaultValue
public boolean getDefaultValue()
-