Package io.ultreia.java4all.util
Class SortedProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- io.ultreia.java4all.util.SortedProperties
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
public class SortedProperties extends Properties
ExtendsPropertiesand ensure order on keys (using natural order onfunctionmethod).This means that when you will
loadorstore, this order will be used. Created by tchemit on 29/12/2017.- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description SortedProperties()SortedProperties(Properties defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Map.Entry<Object,Object>>entrySet()Enumeration<Object>keys()voidsetFunction(Function<?,String> function)Set<String>stringPropertyNames()-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, toString, values
-
-
-
-
Constructor Detail
-
SortedProperties
public SortedProperties()
-
SortedProperties
public SortedProperties(Properties defaults)
-
-
Method Detail
-
keys
public Enumeration<Object> keys()
- Overrides:
keysin classProperties
-
stringPropertyNames
public Set<String> stringPropertyNames()
- Overrides:
stringPropertyNamesin classProperties
-
-