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>
realMap
private static long
serialVersionUID
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Modifier Constructor Description (package private)
LinkedProperties()
private
LinkedProperties(Map<String,String> realMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
LinkedProperties
clone()
boolean
contains(Object value)
boolean
containsKey(Object key)
boolean
containsValue(Object value)
private static <T> T
defVal(T val, T def)
Enumeration<Object>
elements()
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()
Enumeration<?>
propertyNames()
Object
put(Object key, Object value)
Object
remove(Object key)
Object
setProperty(String key, String value)
int
size()
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:
getProperty
in classProperties
-
getProperty
public String getProperty(String key, String defaultValue)
- Overrides:
getProperty
in classProperties
-
contains
public boolean contains(Object value)
- Overrides:
contains
in classProperties
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<Object,Object>
- Overrides:
containsKey
in classProperties
-
keys
public Enumeration<Object> keys()
- Overrides:
keys
in classProperties
-
elements
public Enumeration<Object> elements()
- Overrides:
elements
in classProperties
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<Object,Object>
- Overrides:
containsValue
in classProperties
-
clear
public void clear()
-
values
public Collection<Object> values()
-
propertyNames
public Enumeration<?> propertyNames()
- Overrides:
propertyNames
in classProperties
-
stringPropertyNames
public Set<String> stringPropertyNames()
- Overrides:
stringPropertyNames
in classProperties
-
setProperty
public Object setProperty(String key, String value)
- Overrides:
setProperty
in classProperties
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
clone
public LinkedProperties clone()
- Overrides:
clone
in classProperties
-
-