public class SortedProperties
extends java.util.Properties
SortedProperties extends Properties and adds sort functionality for the keys.| Constructor and Description |
|---|
SortedProperties()
Instantiates a new
SortedProperties. |
SortedProperties(java.util.Properties defaults)
Instantiates a new
SortedProperties. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Comparator<java.lang.Object> |
getComparator()
Gets the
Comparator for sort this SortedProperties. |
java.util.Enumeration<java.lang.Object> |
keys() |
java.util.Set<java.lang.Object> |
keySet() |
protected java.util.Comparator<java.lang.Object> |
newComparator()
Factory method for creating a new
Comparator for sort this SortedProperties. |
static SortedProperties |
of()
Factory method to create a new
SortedProperties object. |
static SortedProperties |
of(java.util.Properties defaults)
Factory method to create a new
SortedProperties object. |
static SortedProperties |
of(java.util.Properties defaults,
java.util.Comparator<java.lang.Object> comparator)
Factory method to create a new
SortedProperties object. |
java.util.Enumeration<?> |
propertyNames() |
getProperty, getProperty, list, list, load, load, loadFromXML, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic SortedProperties()
SortedProperties.public SortedProperties(java.util.Properties defaults)
SortedProperties.defaults - the defaultspublic static SortedProperties of()
SortedProperties object.SortedProperties objectpublic static SortedProperties of(java.util.Properties defaults)
SortedProperties object.defaults - the defaultsSortedProperties objectpublic static SortedProperties of(java.util.Properties defaults, java.util.Comparator<java.lang.Object> comparator)
SortedProperties object.defaults - the defaultscomparator - the comparatorSortedProperties objectpublic java.util.Comparator<java.lang.Object> getComparator()
Comparator for sort this SortedProperties.Comparator.public java.util.Enumeration<java.lang.Object> keys()
keys in class java.util.Hashtable<java.lang.Object,java.lang.Object>public java.util.Set<java.lang.Object> keySet()
keySet in interface java.util.Map<java.lang.Object,java.lang.Object>keySet in class java.util.Hashtable<java.lang.Object,java.lang.Object>protected java.util.Comparator<java.lang.Object> newComparator()
Comparator for sort this SortedProperties.
This method is invoked in the methods keys and can be overridden so users can provide their
own version of a Comparator.Comparator.public java.util.Enumeration<?> propertyNames()
propertyNames in class java.util.Properties