Class SortedProperties
java.lang.Object
java.util.Dictionary<Object,Object>
java.util.Hashtable<Object,Object>
java.util.Properties
org.apache.commons.collections4.properties.SortedProperties
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
A drop-in replacement for
Properties for sorting keys.
Overrides Hashtable.keys() to sort keys. Allows other methods on the superclass to work with sorted keys.
- Since:
- 4.2
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class java.util.Properties
defaults -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentrySet()voidforEach(BiConsumer<? super Object, ? super Object> action) keys()keySet()Enumeration<?> Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, save, setProperty, store, store, storeToXML, storeToXMLMethods inherited from class java.util.Hashtable
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
-
Constructor Details
-
SortedProperties
public SortedProperties()Constructs a new instance.
-
-
Method Details
-
entrySet
-
forEach
-
keys
-
keySet
-
propertyNames
- Overrides:
propertyNamesin classProperties
-
stringPropertyNames
- Overrides:
stringPropertyNamesin classProperties
-