public final class SortedProperties
extends java.util.Properties
Constructor and Description |
---|
SortedProperties() |
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration<java.lang.Object> |
keys()
Overriden to be able to write properties sorted by keys to the disk
|
static java.util.Enumeration<?> |
sortKeys(java.util.Set<java.lang.String> keySet)
To be compatible with version control systems, we need to sort properties
before storing them to disk.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public java.util.Enumeration<java.lang.Object> keys()
keys
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
Hashtable.keys()
public static java.util.Enumeration<?> sortKeys(java.util.Set<java.lang.String> keySet)
keySet
- non null set instance to sortSpotBugs is licensed under the LGPL.