|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserSettings
Denotes an abstract way for obtaining/storing user settings.
Method Summary | |
---|---|
String |
get(String aName,
String aDefaultValue)
Returns the string value associated with the given name, returning a given default value if no value is (yet) associated. |
boolean |
getBoolean(String aName,
boolean aDefaultValue)
Returns the boolean value associated with the given name, returning a given default value if no value is (yet) associated. |
int |
getInt(String aName,
int aDefaultValue)
Returns the integer value associated with the given name, returning a given default value if no value is (yet) associated. |
long |
getLong(String aName,
long aDefaultValue)
Returns the long value associated with the given name, returning a given default value if no value is (yet) associated. |
String |
getName()
Returns the symbolic name for this user settings. |
void |
put(String aName,
String aValue)
Associates the given String value to the given name. |
void |
putAll(Map<?,?> aSettings)
Allows all given map of settings to be copied to this user settings. |
void |
putBoolean(String aName,
boolean aValue)
Associates the given boolean value to the given name. |
void |
putInt(String aName,
int aValue)
Associates the given integer value to the given name. |
void |
putLong(String aName,
long aValue)
Associates the given long value to the given name. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
String get(String aName, String aDefaultValue)
aName
- the name of whose associated value should be returned;aDefaultValue
- the default value to return.
boolean getBoolean(String aName, boolean aDefaultValue)
aName
- the name of whose associated value should be returned;aDefaultValue
- the default value to return.
int getInt(String aName, int aDefaultValue)
aName
- the name of whose associated value should be returned;aDefaultValue
- the default value to return.
long getLong(String aName, long aDefaultValue)
aName
- the name of whose associated value should be returned;aDefaultValue
- the default value to return.
String getName()
null
.void put(String aName, String aValue)
aName
- the name to associate the value to;aValue
- the value to associate to the given name.void putAll(Map<?,?> aSettings)
aSettings
- the map with settings to copy, cannot be null
.void putBoolean(String aName, boolean aValue)
aName
- the name to associate the value to;aValue
- the value to associate to the given name.void putInt(String aName, int aValue)
aName
- the name to associate the value to;aValue
- the value to associate to the given name.void putLong(String aName, long aValue)
aName
- the name to associate the value to;aValue
- the value to associate to the given name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |