public class UserConfiguration extends Properties
defaults| Constructor and Description |
|---|
UserConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String key)
Gets a boolean property value.
|
boolean |
getBoolean(String key,
boolean defaultValue)
Gets a boolean property value possibly set to a default value.
|
int |
getInteger(String key)
Gets an integer property.
|
void |
load(String appName)
Load the user-specific application properties.
|
void |
save(String appName,
String version)
Save the user-specific application properties.
|
Object |
setProperty(String key,
boolean value)
Sets a boolean property.
|
Object |
setProperty(String key,
int value)
Sets an integer property.
|
Object |
setProperty(String key,
String value) |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic void load(String appName)
appName - the application name.public void save(String appName, String version)
appName - the application name.version - the application version, will be used in a comment.public Object setProperty(String key, String value)
setProperty in class Propertiespublic boolean getBoolean(String key)
key - The name of the property.public boolean getBoolean(String key, boolean defaultValue)
key - the name of the property.defaultValue - the default value.public Object setProperty(String key, boolean value)
key - The name of the property.value - The new value for the property.public int getInteger(String key)
key - The name of the property.Copyright © 2021. All rights reserved.