Class LinkedProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- com.trivago.cluecumber.engine.properties.LinkedProperties
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
public class LinkedProperties extends Properties
Properties extension that keeps the order of properties.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description LinkedProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the properties map.booleancontains(Object value)Check if the property map contains a value.booleancontainsKey(Object key)Check if the properties contain a specific key.booleancontainsValue(Object value)Alias for the contains method.Enumeration<Object>elements()Not implemented.Set<Map.Entry<Object,Object>>entrySet()Get the properties as anMap.Entryset.Objectput(Object key, Object value)Add a property.-
Methods inherited from class java.util.Properties
clone, compute, computeIfAbsent, computeIfPresent, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Method Detail
-
contains
public boolean contains(Object value)
Check if the property map contains a value.- Overrides:
containsin classProperties- Parameters:
value- a value to search for.- Returns:
- true if the value is in the property map.
-
containsValue
public boolean containsValue(Object value)
Alias for the contains method.- Specified by:
containsValuein interfaceMap<Object,Object>- Overrides:
containsValuein classProperties- Parameters:
value- value whose presence in this hashtable is to be tested.- Returns:
- true if the value is in the property map.
-
elements
public Enumeration<Object> elements()
Not implemented.- Overrides:
elementsin classProperties- Returns:
- UnsupportedOperationException error.
-
clear
public void clear()
Clear the properties map.
-
containsKey
public boolean containsKey(Object key)
Check if the properties contain a specific key.- Specified by:
containsKeyin interfaceMap<Object,Object>- Overrides:
containsKeyin classProperties- Parameters:
key- The possible key.- Returns:
- true if this key exists.
-
-