Package org.wildfly.security.ssl
Class LinkedProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- org.wildfly.security.ssl.LinkedProperties
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
class LinkedProperties extends Properties
A properties map that is backed by a type-checked linked hash map. The map can never be made to hold keys or values that are not strings, and will always return entries in the same order they were added.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,String>realMapprivate static longserialVersionUID-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Modifier Constructor Description (package private)LinkedProperties()privateLinkedProperties(Map<String,String> realMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()LinkedPropertiesclone()booleancontains(Object value)booleancontainsKey(Object key)booleancontainsValue(Object value)private static <T> TdefVal(T val, T def)Enumeration<Object>elements()Set<Map.Entry<Object,Object>>entrySet()Objectget(Object key)StringgetProperty(String key)StringgetProperty(String key, String defaultValue)booleanisEmpty()Enumeration<Object>keys()Set<Object>keySet()Enumeration<?>propertyNames()Objectput(Object key, Object value)Objectremove(Object key)ObjectsetProperty(String key, String value)intsize()Set<Map.Entry<String,String>>stringMapEntries()Set<String>stringPropertyNames()Collection<Object>values()-
Methods inherited from class java.util.Properties
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, list, list, load, load, loadFromXML, merge, putAll, putIfAbsent, rehash, remove, replace, replace, replaceAll, save, store, store, storeToXML, storeToXML, storeToXML, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
defVal
private static <T> T defVal(T val, T def)
-
getProperty
public String getProperty(String key)
- Overrides:
getPropertyin classProperties
-
getProperty
public String getProperty(String key, String defaultValue)
- Overrides:
getPropertyin classProperties
-
contains
public boolean contains(Object value)
- Overrides:
containsin classProperties
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<Object,Object>- Overrides:
containsKeyin classProperties
-
keys
public Enumeration<Object> keys()
- Overrides:
keysin classProperties
-
elements
public Enumeration<Object> elements()
- Overrides:
elementsin classProperties
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<Object,Object>- Overrides:
containsValuein classProperties
-
clear
public void clear()
-
values
public Collection<Object> values()
-
propertyNames
public Enumeration<?> propertyNames()
- Overrides:
propertyNamesin classProperties
-
stringPropertyNames
public Set<String> stringPropertyNames()
- Overrides:
stringPropertyNamesin classProperties
-
setProperty
public Object setProperty(String key, String value)
- Overrides:
setPropertyin classProperties
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
clone
public LinkedProperties clone()
- Overrides:
clonein classProperties
-
-