Modifier and Type | Field and Description |
---|---|
private boolean |
valueSet
Has a value been set?
|
defaultValue, value
ADDRESS_OPTION, BOOLEAN_OPTION, ENUM_OPTION, FLOAT_OPTION, INT_OPTION, MICROSECONDS_OPTION, PAGES_OPTION, RAW, READABLE, set, STRING_OPTION, XML
Constructor and Description |
---|
Threads()
Create the option.
|
Modifier and Type | Method and Description |
---|---|
void |
setValue(int value)
Return the number of threads to use, or delegate to the runtime if this has not been set.
|
void |
updateDefaultValue(int defaultValue)
Update the default value, only overriding value if no explicit value was set.
|
protected void |
validate()
Only accept values of 1 or higher.
|
getDefaultValue, getValue, setDefaultValue
private boolean valueSet
public Threads()
public void updateDefaultValue(int defaultValue)
defaultValue
- The actual default value.public void setValue(int value)