Package net.i2p.data
Class EmptyProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
net.i2p.util.OrderedProperties
net.i2p.data.EmptyProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,Object>
public class EmptyProperties extends OrderedProperties
Immutable OrderedProperties, to reduce object churn
in LS2 where it's expected to be empty.
Returned from DataHelper.readProperties(in, null).
All methods that modify will throw UnsupportedOperationException,
except clear() and remove() which do nothing.
- Since:
- 0.9.38
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static EmptyProperties
INSTANCE
-
Method Summary
Modifier and Type Method Description String
getProperty(String key)
void
load(InputStream inStream)
void
load(Reader reader)
void
loadFromXML(InputStream in)
Object
put(Object key, Object value)
void
putAll(Map<? extends Object,? extends Object> t)
Object
setProperty(String key, String value)
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, get, getOrDefault, getProperty, hashCode, isEmpty, keys, list, list, merge, propertyNames, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Field Details
-
Method Details
-
getProperty
- Overrides:
getProperty
in classProperties
-
load
- Overrides:
load
in classProperties
-
load
- Overrides:
load
in classProperties
-
loadFromXML
- Overrides:
loadFromXML
in classProperties
-
put
-
putAll
-
setProperty
- Overrides:
setProperty
in classProperties
-