public class SortedProperties extends Properties
SortedProperties extends Properties and adds sort functionality for the keys.defaults| Constructor and Description |
|---|
SortedProperties()
Instantiates a new
SortedProperties. |
SortedProperties(Properties defaults)
Instantiates a new
SortedProperties. |
| Modifier and Type | Method and Description |
|---|---|
Comparator<Object> |
getComparator()
Gets the
Comparator for sort this SortedProperties. |
Enumeration<Object> |
keys() |
Set<Object> |
keySet() |
protected Comparator<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(Properties defaults)
Factory method to create a new
SortedProperties object. |
static SortedProperties |
of(Properties defaults,
Comparator<Object> comparator)
Factory method to create a new
SortedProperties object. |
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(Properties defaults)
SortedProperties.defaults - the defaultspublic static SortedProperties of()
SortedProperties object.SortedProperties objectpublic static SortedProperties of(Properties defaults)
SortedProperties object.defaults - the defaultsSortedProperties objectpublic static SortedProperties of(Properties defaults, Comparator<Object> comparator)
SortedProperties object.defaults - the defaultscomparator - the comparatorSortedProperties objectpublic Comparator<Object> getComparator()
Comparator for sort this SortedProperties.Comparator.protected Comparator<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 Enumeration<?> propertyNames()
propertyNames in class PropertiesCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.