public final class OrderedProperties extends Properties
Properties
where 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
JDK Properties
class.defaults
Constructor and Description |
---|
OrderedProperties() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Set<Map.Entry<Object,Object>> |
entrySet() |
Object |
get(Object key) |
String |
getProperty(String key) |
String |
getProperty(String key,
String defaultValue) |
boolean |
isEmpty() |
Enumeration<Object> |
keys() |
Set<Object> |
keySet() |
Object |
put(Object key,
Object value) |
void |
putAll(Map<?,?> t) |
Object |
remove(Object key) |
int |
size() |
Set<String> |
stringPropertyNames() |
String |
toString() |
Collection<Object> |
values() |
list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML
clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, rehash, remove, replace, replace, replaceAll
public OrderedProperties()
public boolean isEmpty()
public void clear()
public String getProperty(String key)
getProperty
in class Properties
public String getProperty(String key, String defaultValue)
getProperty
in class Properties
public int size()
public Set<String> stringPropertyNames()
stringPropertyNames
in class Properties
public Collection<Object> values()
Apache Camel