Package org.apache.camel.util
Class OrderedProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- org.apache.camel.util.OrderedProperties
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
public final class OrderedProperties extends Properties
This class is an orderedPropertieswhere the key/values are stored in the order they are added or loaded. Note: This implementation is only intended as implementation detail for the Camel properties component, and has only been designed to provide the needed functionality. The complex logic for loading properties has been kept from the JDKPropertiesclass.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description OrderedProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Set<Map.Entry<Object,Object>>entrySet()Objectget(Object key)StringgetProperty(String key)StringgetProperty(String key, String defaultValue)booleanisEmpty()Enumeration<Object>keys()Set<Object>keySet()Objectput(Object key, Object value)voidputAll(Map<?,?> t)Objectremove(Object key)intsize()Set<String>stringPropertyNames()StringtoString()Collection<Object>values()-
Methods inherited from class java.util.Properties
clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, getOrDefault, hashCode, list, list, load, load, loadFromXML, merge, propertyNames, putIfAbsent, rehash, remove, replace, replace, replaceAll, save, setProperty, store, store, storeToXML, storeToXML, storeToXML
-
-
-
-
Constructor Detail
-
OrderedProperties
public OrderedProperties()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
-
getProperty
public String getProperty(String key)
- Overrides:
getPropertyin classProperties
-
getProperty
public String getProperty(String key, String defaultValue)
- Overrides:
getPropertyin classProperties
-
keys
public Enumeration<Object> keys()
- Overrides:
keysin classProperties
-
size
public int size()
-
stringPropertyNames
public Set<String> stringPropertyNames()
- Overrides:
stringPropertyNamesin classProperties
-
values
public Collection<Object> values()
-
toString
public String toString()
- Overrides:
toStringin classProperties
-
-