Package fr.formiko.usuel
Class SortedProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,Object>
An extends class from Properties that is used to save Options in Formiko.
Cf: https://stackoverflow.com/questions/10275862/how-to-sort-properties-in-java
Cf: https://stackoverflow.com/questions/10275862/how-to-sort-properties-in-java
- Author:
- Stéphane Millien
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
ConstructorsConstructorDescriptionSortedProperties(int x)
A simple extends for constructor with a default number of properties as args.A simple extends for constructor with a default properties a args. -
Method Summary
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, 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 Details
-
SortedProperties
A simple extends for constructor with a default properties a args. -
SortedProperties
public SortedProperties(int x)A simple extends for constructor with a default number of properties as args.
-
-
Method Details
-
keySet
Set a sortable Set. -
entrySet
Function to force sorting. -
keys
to get the sorted keySet.- Overrides:
keys
in classProperties
-