Package org.codice.ddf.configuration
Class DictionaryMap<K,V>
java.lang.Object
java.util.Dictionary<K,V>
org.codice.ddf.configuration.DictionaryMap<K,V>
- Type Parameters:
K-V-
- All Implemented Interfaces:
Serializable,Map<K,V>
A HashMap based Dictionary for use with OSGI methods requiring a Dictionary
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDictionaryMap(int initialCapacity) DictionaryMap(int initialCapacity, float loadFactor) DictionaryMap(Map<? extends K, ? extends V> m) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) elements()entrySet()booleanisEmpty()keys()keySet()static <K,V> DictionaryMap <K, V> of(K k1, V v1) static <K,V> DictionaryMap <K, V> of(K k1, V v1, K k2, V v2) static <K,V> DictionaryMap <K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) voidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
DictionaryMap
public DictionaryMap(int initialCapacity, float loadFactor) -
DictionaryMap
public DictionaryMap(int initialCapacity) -
DictionaryMap
public DictionaryMap() -
DictionaryMap
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
keys
- Specified by:
keysin classDictionary<K,V>
-
elements
- Specified by:
elementsin classDictionary<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
of
-
of
-
of
-