public static interface FeatureAdapter.SettingsAdapter
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(java.lang.String key,
java.lang.String def)
Get settings value for a certain key and provide a default value.
|
boolean |
put(java.lang.String key,
java.lang.String value)
Set a value for a certain setting.
|
java.lang.String get(java.lang.String key, java.lang.String def)
key
- the identifier for the settingdef
- the default value. For each call of get() with a given key, the
default value must be the same. def
may be null.def
otherwiseboolean put(java.lang.String key, java.lang.String value)
key
- the unique identifier for the settingvalue
- the value of the setting. Can be null or "" which both removes the key-value entry.true
, if something has changed (i.e. value is different than before)