Package jadex.commons.collection
Class OrderedProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- jadex.commons.collection.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
Class extending java.util.Properties to preserve order by redirecting calls to an internal linked hash map.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.LinkedHashMap<java.lang.Object,java.lang.Object>
map
The internal map.
-
Constructor Summary
Constructors Constructor Description OrderedProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Delegate.boolean
containsKey(java.lang.Object key)
Delegate.boolean
containsValue(java.lang.Object value)
Delegate.java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>>
entrySet()
Delegate.java.lang.Object
get(java.lang.Object key)
Delegate.boolean
isEmpty()
Delegate.java.util.Set<java.lang.Object>
keySet()
Delegate.java.lang.Object
put(java.lang.Object key, java.lang.Object value)
Delegate.void
putAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> m)
Delegate.java.lang.Object
remove(java.lang.Object key)
Delegate.int
size()
Delegate.java.util.Collection<java.lang.Object>
values()
Delegate.-
Methods inherited from class java.util.Properties
clone, compute, computeIfAbsent, computeIfPresent, contains, elements, equals, forEach, getOrDefault, getProperty, getProperty, hashCode, keys, list, list, load, load, loadFromXML, merge, propertyNames, putIfAbsent, rehash, remove, replace, replace, replaceAll, save, setProperty, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString
-
-
-
-
Method Detail
-
size
public int size()
Delegate.- Specified by:
size
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
size
in classjava.util.Properties
-
isEmpty
public boolean isEmpty()
Delegate.- Specified by:
isEmpty
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
isEmpty
in classjava.util.Properties
-
containsKey
public boolean containsKey(java.lang.Object key)
Delegate.- Specified by:
containsKey
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
containsKey
in classjava.util.Properties
-
containsValue
public boolean containsValue(java.lang.Object value)
Delegate.- Specified by:
containsValue
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
containsValue
in classjava.util.Properties
-
get
public java.lang.Object get(java.lang.Object key)
Delegate.- Specified by:
get
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
get
in classjava.util.Properties
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
Delegate.- Specified by:
put
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
put
in classjava.util.Properties
-
remove
public java.lang.Object remove(java.lang.Object key)
Delegate.- Specified by:
remove
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
remove
in classjava.util.Properties
-
putAll
public void putAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> m)
Delegate.- Specified by:
putAll
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
putAll
in classjava.util.Properties
-
clear
public void clear()
Delegate.- Specified by:
clear
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
clear
in classjava.util.Properties
-
keySet
public java.util.Set<java.lang.Object> keySet()
Delegate.- Specified by:
keySet
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
keySet
in classjava.util.Properties
-
values
public java.util.Collection<java.lang.Object> values()
Delegate.- Specified by:
values
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
values
in classjava.util.Properties
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> entrySet()
Delegate.- Specified by:
entrySet
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
entrySet
in classjava.util.Properties
-
-