Package net.i2p.util
Class I2PProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,Object>
public class I2PProperties extends Properties
This class contains a number of properties ((key,value)-pairs).
Additionally, it adds the possibility for callbacks,
to allow immediate response to changing properties.
- Author:
- Mathiasdm
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
I2PProperties.I2PPropertyCallback
-
Field Summary
-
Constructor Summary
Constructors Constructor Description I2PProperties()
I2PProperties(Properties defaults)
-
Method Summary
Modifier and Type Method Description void
addCallBack(I2PProperties.I2PPropertyCallback callback)
void
removeCallBack(I2PProperties.I2PPropertyCallback callback)
Object
setProperty(String key, String value)
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Constructor Details
-
I2PProperties
public I2PProperties() -
I2PProperties
-
-
Method Details
-
addCallBack
-
removeCallBack
-
setProperty
- Overrides:
setProperty
in classProperties
-