Package org.apache.cassandra.utils
Class BiMultiValMap<K,V>
java.lang.Object
org.apache.cassandra.utils.BiMultiValMap<K,V>
- Type Parameters:
K-V-
- All Implemented Interfaces:
Map<K,V>
- Direct Known Subclasses:
SortedBiMultiValMap
A variant of BiMap which does not enforce uniqueness of values. This means the inverse
is a Multimap. (But the "forward" view is not a multimap; keys may only each have one value.)
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()inverse()booleanisEmpty()keySet()voidremoveValue(V value) intsize()values()valueSet()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
-
Field Details
-
forwardMap
-
reverseMap
-
-
Constructor Details
-
BiMultiValMap
public BiMultiValMap() -
BiMultiValMap
-
BiMultiValMap
-
-
Method Details
-
inverse
-
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
removeValue
-
size
public int size() -
values
-
valueSet
-