java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
io.github.mmm.base.properties.SortedProperties
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
This class extends
Properties and makes them sorted by their keys. Sorting the properties is
useful when changes shall be compared using diff-algorithms.- Since:
- 1.0.0
- See Also:
-
Field Summary
Fields inherited from class java.util.Properties
defaults -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Constructor Details
-
SortedProperties
public SortedProperties()The constructor. -
SortedProperties
The constructor.- Parameters:
defaults- are thePropertiesto inherit as defaults.
-
-
Method Details
-
keys
- Overrides:
keysin classProperties
-
entrySet
-
keySet
-