Package jmri.util
Class OrderedProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- jmri.util.OrderedProperties
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.Object,java.lang.Object>
public class OrderedProperties extends java.util.Properties
Properties
implementation that enumerates properties sorted by key. See http://stackoverflow.com/a/3253071/176160- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrderedProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Enumeration<java.lang.Object>
keys()
java.util.Set<java.lang.Object>
keySet()
-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, 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 Detail
-
OrderedProperties
public OrderedProperties()
-
-
Method Detail
-
keySet
public java.util.Set<java.lang.Object> keySet()
- Specified by:
keySet
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
keySet
in classjava.util.Properties
-
keys
public java.util.Enumeration<java.lang.Object> keys()
- Overrides:
keys
in classjava.util.Properties
-
-