- All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
- Direct Known Subclasses:
EmptyProperties
Properties map that has its keySet ordered consistently (via the key's lexicographical ordering). This is useful in environments where maps must stay the same order (e.g. for signature verification) This does NOT support remove against the iterators / etc. Now unsorted until the keyset or entryset is requested. The class is unsynchronized. The
keySet() and entrySet() methods return ordered sets. Others - such as the enumerations values(), keys(), propertyNames() - do not.- See Also:
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classOrders entries by key so the written file is stable.Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final OrderedProperties.EntryComparatorOrder used when the entries are written out.Fields inherited from class Properties
defaultsConstructor Summary
ConstructorsMethod Summary
All MethodsMethods inherited from class Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
Field Details
ECOMP
Order used when the entries are written out.
Constructor Details
OrderedProperties
public OrderedProperties()Create a new OrderedProperties with default values.
Method Details
keySet
entrySet