private static class MainInitialization.JosmSettingsAdapter extends java.lang.Object implements FeatureAdapter.SettingsAdapter
| Modifier | Constructor and Description |
|---|---|
private |
JosmSettingsAdapter() |
| 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.
|
private JosmSettingsAdapter()
public java.lang.String get(java.lang.String key, java.lang.String def)
FeatureAdapter.SettingsAdapterget in interface FeatureAdapter.SettingsAdapterkey - 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 otherwisepublic boolean put(java.lang.String key, java.lang.String value)
FeatureAdapter.SettingsAdapterput in interface FeatureAdapter.SettingsAdapterkey - 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)