Package | Description |
---|---|
jhelp.util.preference |
Preferences/configuration management
|
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.String,Pair<PreferenceType,java.lang.Object>> |
PreferencesParser.preferences
Preference to fill
|
private java.util.HashMap<java.lang.String,Pair<PreferenceType,java.lang.Object>> |
Preferences.preferences
Preferences map
|
private java.util.HashMap<java.lang.String,Pair<PreferenceType,java.lang.Object>> |
PreferencesSerializer.preferences
Preferences to serialize
|
Modifier and Type | Method and Description |
---|---|
PreferenceType |
Preferences.getPreferenceType(java.lang.String name)
Obtain the type of a preference
|
static PreferenceType |
PreferenceType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PreferenceType[] |
PreferenceType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.Object |
Preferences.parse(java.lang.String serializedValue,
PreferenceType preferenceType)
Parse a serialized value to the real value depends on
PreferenceType |
(package private) static java.lang.String |
Preferences.serialize(java.lang.Object value,
PreferenceType preferenceType)
Serialize a value depends on
PreferenceType |
Constructor and Description |
---|
PreferencesParser(java.io.File preferencesFile,
java.util.HashMap<java.lang.String,Pair<PreferenceType,java.lang.Object>> preferences)
Create a new instance of PreferencesParser and fill preferences from file
|
PreferencesSerializer(java.io.File preferencesFile,
java.util.HashMap<java.lang.String,Pair<PreferenceType,java.lang.Object>> preferences)
Create a new instance of PreferencesSerializer
|