public final class RioSettingImpl<T> extends Object implements RioSetting<T>
RioSetting
interface.Constructor and Description |
---|
RioSettingImpl(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 |
---|---|
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.
|
public RioSettingImpl(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.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 © 2001-2016 Aduna. All Rights Reserved.