public class FloatOption extends Option
Modifier and Type | Field and Description |
---|---|
protected float |
defaultValue |
protected float |
value |
ADDRESS_OPTION, BOOLEAN_OPTION, ENUM_OPTION, FLOAT_OPTION, INT_OPTION, MICROSECONDS_OPTION, PAGES_OPTION, RAW, READABLE, set, STRING_OPTION, XML
Modifier | Constructor and Description |
---|---|
protected |
FloatOption(OptionSet set,
String name,
String desc,
float defaultValue)
Create a new float option.
|
Modifier and Type | Method and Description |
---|---|
float |
getDefaultValue()
Read the default value of the option
|
float |
getValue()
Read the current value of the option.
|
void |
setDefaultValue(float value)
Modify the default value of the option.
|
void |
setValue(float value)
Update the value of the option, echoing the change if the echoOptions
option is set.
|
protected float defaultValue
protected float value
protected FloatOption(OptionSet set, String name, String desc, float defaultValue)
set
- The option set this option belongs to.name
- The space separated name for the option.desc
- The purpose of the optiondefaultValue
- The default value of the option.public float getValue()
public float getDefaultValue()
public void setValue(float value)
value
- The new value for the option.public void setDefaultValue(float value)
value
- The new default value for the option.