Package com.evolveum.midpoint.prism.path
Class NameKeyedMap<K extends QName,T>
java.lang.Object
com.evolveum.midpoint.prism.path.NameKeyedMap<K,T>
- All Implemented Interfaces:
Serializable,Map<K,T>
Special case of a map that has
QName or ItemName as a key.
The main issue with path-keyed maps is that comparing item paths using equals/hashCode is
unreliable.
This map does _not_ support null keys. Also, collections returned by keySet(), values(), entrySet()
are not modifiable.- See Also:
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()voidintsize()toString()@NotNull Collection<T>values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
NameKeyedMap
public NameKeyedMap()
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K extends QName,T>
-
containsValue
- Specified by:
containsValuein interfaceMap<K extends QName,T>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-