public class AddressOption extends Option
| Modifier and Type | Field and Description |
|---|---|
protected Address |
defaultValue |
protected Address |
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 |
AddressOption(OptionSet set,
String name,
String desc,
Address defaultValue)
Create a new int option.
|
| Modifier and Type | Method and Description |
|---|---|
Address |
getDefaultValue()
Read the default value of the option.
|
Address |
getValue()
Read the current value of the option.
|
void |
setDefaultValue(Address value)
Modify the default value of the option.
|
void |
setValue(int value)
Update the value of the option, echoing the change if the echoOptions
option is set.
|
protected Address defaultValue
protected AddressOption(OptionSet set, String name, String desc, Address 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 Address getDefaultValue()
public void setValue(int value)
value - The new value for the option.public void setDefaultValue(Address value)
value - The new default value for the option.