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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
isEmpty()
keySet()
void
int
size()
toString()
@NotNull Collection<T>
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
containsKey
in interfaceMap<K extends QName,
T>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K extends QName,
T>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-