public class I2PProperties extends Properties
| Modifier and Type | Class and Description |
|---|---|
static interface | I2PProperties.I2PPropertyCallbackCallback interface for property change notifications. |
defaults| Constructor and Description |
|---|
I2PProperties()Constructs an empty I2PProperties with no default values. |
I2PProperties(Properties defaults)Constructs an I2PProperties with the given default values. |
| Modifier and Type | Method and Description |
|---|---|
void | addCallBack(I2PProperties.I2PPropertyCallback callback)Registers a callback for property change notifications. |
I2PProperties | clone()Returns a shallow copy of this properties instance. |
void | removeCallBack(I2PProperties.I2PPropertyCallback callback)Unregisters a callback. |
Object | setProperty(String key,
String value)Sets a property and notifies registered callbacks. |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNamesclear, 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 I2PProperties()
public I2PProperties(Properties defaults)
defaults - the default property valuespublic void addCallBack(I2PProperties.I2PPropertyCallback callback)
callback - the callback to registerpublic I2PProperties clone()
public void removeCallBack(I2PProperties.I2PPropertyCallback callback)
callback - the callback to removepublic Object setProperty(String key, String value)
setProperty in class Properties