Class MultiMap<K,V>
java.lang.Object
org.eclipse.net4j.util.collection.MultiMap<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
Map<K,V>
- Direct Known Subclasses:
MultiMap.ListBased
A map that associates each key with a collection of values.
- Author:
- Eike Stepper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) protected booleancontainsKey(Object key, int delegateCount) booleancontainsValue(Object value) doGetDelegate(int index) entrySet()getDelegate(int index) abstract intbooleanisEmpty()keySet()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
-
MultiMap
public MultiMap()
-
-
Method Details
-
getDelegateCount
public abstract int getDelegateCount() -
getDelegate
-
clear
public void clear() -
put
-
putAll
-
remove
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Category
- READ
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V> - Category
- READ
-
get
-
size
public int size() -
isEmpty
public boolean isEmpty() -
entrySet
-
keySet
-
values
-
containsKey
-
doGetDelegate
-