public class PreferencesHandler
extends Configuration
PreferencesHandler parses a .prefs file for programmatic
management (i.e. reading/writing values).| Modifier | Constructor and Description |
|---|---|
protected |
PreferencesHandler(Path... files)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Enum<T>> |
getEnum(String key,
T defaultValue)
Get the enum value associated with the given key.
|
long |
getSize(String key,
long defaultValue)
Get the size description associated with the given key.
|
protected PreferencesHandler(Path... files)
file - the absolute path to the preferences files (relative paths
will resolve to the user's home directory)public long getSize(String key, long defaultValue)
key - defaultValue - public <T extends Enum<T>> T getEnum(String key, T defaultValue)
key - defaultValue -