public final class DummyPreferences extends Object implements IPreferences
| Constructor and Description |
|---|
DummyPreferences(String... path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
flush() |
String |
get(String key,
String defaultValue) |
boolean |
getBoolean(String key,
boolean defaultValue) |
double |
getDouble(String key,
double defaultValue) |
int |
getInt(String key,
int defaultValue) |
String |
getName() |
String[] |
getPath() |
int |
hashCode() |
Iterable<String> |
keys() |
IPreferences |
node(String... nodes) |
boolean |
nodeExists(String... nodes) |
List<IPreferences> |
nodes() |
void |
put(String key,
String value) |
void |
setBoolean(String key,
boolean value) |
void |
setDouble(String key,
double value) |
void |
setInt(String key,
int value) |
public DummyPreferences(String... path)
public void setInt(String key, int value)
setInt in interface IPreferencespublic void setDouble(String key, double value)
setDouble in interface IPreferencespublic boolean getBoolean(String key, boolean defaultValue)
getBoolean in interface IPreferencespublic void setBoolean(String key, boolean value)
setBoolean in interface IPreferencespublic void put(String key, String value)
put in interface IPreferencespublic boolean nodeExists(String... nodes) throws PreferencesException
nodeExists in interface IPreferencesPreferencesExceptionpublic IPreferences node(String... nodes)
node in interface IPreferencespublic int getInt(String key, int defaultValue)
getInt in interface IPreferencespublic double getDouble(String key, double defaultValue)
getDouble in interface IPreferencespublic String get(String key, String defaultValue)
get in interface IPreferencespublic void flush()
flush in interface IPreferencespublic List<IPreferences> nodes()
nodes in interface IPreferencespublic String getName()
getName in interface IPreferencespublic Iterable<String> keys()
keys in interface IPreferencespublic String[] getPath()
getPath in interface IPreferencesCopyright © 2007–2017 Andreas Bartels. All rights reserved.