public class SimpleConfigurationKey extends Object implements ConfigurationKey
| Constructor and Description |
|---|
SimpleConfigurationKey(String key,
Object defaultValue) |
SimpleConfigurationKey(String key,
Object defaultValue,
Converter<Object,Object> converter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
get() |
Converter<Object,Object> |
getConverter()
The converter is used before a property value is stored in configuration.
|
Object |
getDefaultValue() |
int |
hashCode() |
String |
toString() |
public SimpleConfigurationKey(String key, Object defaultValue)
key - defaultValue - public String get()
get in interface ConfigurationKeypublic Object getDefaultValue()
getDefaultValue in interface ConfigurationKeypublic Converter<Object,Object> getConverter()
ConfigurationKey
By default, the set of supported value types which can be automatically
converted consist of String, Boolean, Integer and
Long.
getConverter in interface ConfigurationKeyCopyright © 2020. All rights reserved.