Constructor and Description |
---|
SettingsImpl() |
SettingsImpl(Settings parent) |
Modifier and Type | Method and Description |
---|---|
void |
addSettingsListener(SettingsListener listener) |
void |
clearSetting(String id) |
boolean |
getBoolean(String id)
Defaults to false.
|
boolean |
getBoolean(String id,
boolean defaultValue) |
long |
getLong(String id,
long defaultValue) |
String |
getString(String id,
String defaultValue) |
boolean |
isSet(String id) |
void |
reloadSettings() |
void |
removeSettingsListener(SettingsListener listener) |
void |
setBoolean(String id,
boolean value) |
void |
setLong(String id,
long value) |
void |
setString(String id,
String value) |
public SettingsImpl()
public SettingsImpl(Settings parent)
public void reloadSettings()
reloadSettings
in interface Settings
public boolean getBoolean(String id)
Settings
getBoolean
in interface Settings
public boolean getBoolean(String id, boolean defaultValue)
getBoolean
in interface Settings
public void setBoolean(String id, boolean value)
setBoolean
in interface Settings
public long getLong(String id, long defaultValue)
public void addSettingsListener(SettingsListener listener)
addSettingsListener
in interface Settings
public void removeSettingsListener(SettingsListener listener)
removeSettingsListener
in interface Settings
public void clearSetting(String id)
clearSetting
in interface Settings
Copyright © 2019. All Rights Reserved.