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
FieldsFields inherited from class java.util.Properties
defaults -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentrySet()enumerateStringProperties(TreeSet<String> result) Enumerates all key/value pairs in the specified TreeSet and omits the property if the key or value is not a string.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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SortedProperties
public SortedProperties()Constructs a new instance.
-
-
Method Details
-
entrySet
-
enumerateStringProperties
Enumerates all key/value pairs in the specified TreeSet and omits the property if the key or value is not a string.- Parameters:
result- The result set to populate.- Returns:
- The given set.
-
forEach
-
keys
-
keySet
-
keyStream
-
propertyNames
- Overrides:
propertyNamesin classProperties
-
stringPropertyNames
- Overrides:
stringPropertyNamesin classProperties
-