public class SortedProperties
extends java.util.Properties
Properties class whose entries are sorted by key; can only be used in limited scenarios
like storing properties to a file.
Implementation note: The implementations of the keys() and entrySet() methods
violate the contracts of Hashtable.keySet() and Hashtable.entrySet(), because the returned sets
are not backed by this map.
Overriding both methods is necessary to support Oracle and IBM VMS, see
bug 325000.
| Constructor and Description |
|---|
SortedProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> |
entrySet() |
java.util.Enumeration<java.lang.Object> |
keys() |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic java.util.Enumeration<java.lang.Object> keys()
keys in class java.util.Hashtable<java.lang.Object,java.lang.Object>public java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> entrySet()
entrySet in interface java.util.Map<java.lang.Object,java.lang.Object>entrySet in class java.util.Hashtable<java.lang.Object,java.lang.Object>