| | |
| | | }
|
| | |
|
| | | /**
|
| | | * Tests for the existence of a setting.
|
| | | *
|
| | | * @param key
|
| | | * @return true if the setting exists
|
| | | */
|
| | | public boolean hasSettings(String key) {
|
| | | return getString(key, null) != null;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Updates the values for the specified keys and persists the entire
|
| | | * configuration file.
|
| | | *
|
| | |
| | | * @return true if successful
|
| | | */
|
| | | public abstract boolean saveSettings(Map<String, String> updatedSettings);
|
| | |
|
| | | /**
|
| | | * Merge all settings from the settings parameter into this instance.
|
| | | *
|
| | | * @param settings
|
| | | */
|
| | | public void merge(IStoredSettings settings) {
|
| | | getSettings().putAll(settings.getSettings());
|
| | | overrides.putAll(settings.overrides);
|
| | | }
|
| | | } |