T
- the setting typepublic abstract class AbstractRioSetting<T> extends Object implements RioSetting<T>
RioSetting
. Includes base functionality for reading default values from system properties.Modifier | Constructor and Description |
---|---|
protected |
AbstractRioSetting(String key,
String description,
T defaultValue)
Create a new setting object that will be used to reference the given setting.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
T |
getDefaultValue()
Returns the default value for this parser setting if it is not set by a user.
|
String |
getDescription()
The human readable name for this parser setting
|
String |
getKey()
A unique key for this parser setting.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
convert
protected AbstractRioSetting(String key, String description, T defaultValue)
key
- A unique key to use for this setting.description
- A short human-readable description for this setting.defaultValue
- An immutable value specifying the default for this setting. This can be optionally be
overridden by a system property with a name equal to the setting's unique key.public String getKey()
RioSetting
getKey
in interface RioSetting<T>
public String getDescription()
RioSetting
getDescription
in interface RioSetting<T>
public T getDefaultValue()
RioSetting
getDefaultValue
in interface RioSetting<T>
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.