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>
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:
-
Field Summary
Fields inherited from class java.util.Properties
defaults
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String key) void
load
(InputStream inStream) void
void
void
setProperty
(String key, String value) Methods inherited from class net.i2p.util.OrderedProperties
entrySet, keySet
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
-
INSTANCE
-
-
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
-