Class OrderedProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.apache.commons.collections4.properties.OrderedProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
A drop-in replacement for
Properties
for ordered keys.
Overrides methods to keep keys in insertion order. Allows other methods in the superclass to work with ordered keys.
- Since:
- 4.5
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
computeIfAbsent
(Object key, Function<? super Object, ? extends Object> mappingFunction) entrySet()
void
forEach
(BiConsumer<? super Object, ? super Object> action) keys()
keySet()
merge
(Object key, Object value, BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction) Enumeration<?>
void
putIfAbsent
(Object key, Object value) boolean
toString()
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
Methods inherited from class java.util.Hashtable
clone, computeIfPresent, contains, containsKey, containsValue, elements, equals, get, getOrDefault, hashCode, isEmpty, rehash, replace, replace, replaceAll, size, values
-
Constructor Details
-
OrderedProperties
public OrderedProperties()
-
-
Method Details
-
clear
-
compute
-
computeIfAbsent
public Object computeIfAbsent(Object key, Function<? super Object, ? extends Object> mappingFunction) - Specified by:
computeIfAbsent
in interfaceMap<Object,
Object> - Overrides:
computeIfAbsent
in classHashtable<Object,
Object>
-
entrySet
-
forEach
-
keys
-
keySet
-
merge
-
propertyNames
- Overrides:
propertyNames
in classProperties
-
put
-
putAll
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceMap<Object,
Object> - Overrides:
putIfAbsent
in classHashtable<Object,
Object>
-
remove
-
remove
-
toString
-