Class NoOpMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.apache.activemq.artemis.utils.collections.NoOpMap<K,V>
- Type Parameters:
K- the key type.V- the value type.
- All Implemented Interfaces:
Map<K,V>
This class implements a Map, but actually doesnt store anything, it is similar in idea to an EmptyMap, but where
mutation methods simply do a no op rather than UnsupportedOperationException as with EmptyMap.
This is used in QueueImpl when message groups is disabled.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Method Summary
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
instance
-
put
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V> - Overrides:
containsValuein classAbstractMap<K,V>
-
get
-
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode()
-