Package com.intellij.util.containers
Class MultiMap<K,V>
- java.lang.Object
-
- com.intellij.util.containers.MultiMap<K,V>
-
public class MultiMap<K,V> extends Object
- Author:
- Dmitry Avdeev
-
-
Constructor Summary
Constructors Constructor Description MultiMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(K key)booleancontainsScalarValue(V value)protected Collection<V>createCollection()protected Collection<V>createEmptyCollection()protected Map<K,Collection<V>>createMap()Collection<V>get(K key)booleanisEmpty()Set<K>keySet()voidput(K key, Collection<V> values)voidputValue(K key, V value)Collection<V>remove(K key)voidremoveValue(K key, V value)intsize()Collection<? extends V>values()
-
-
-
Method Detail
-
createMap
protected Map<K,Collection<V>> createMap()
-
createCollection
protected Collection<V> createCollection()
-
createEmptyCollection
protected Collection<V> createEmptyCollection()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(K key)
-
containsScalarValue
public boolean containsScalarValue(V value)
-
get
@NotNull public Collection<V> get(K key)
-
size
public int size()
-
put
public void put(K key, Collection<V> values)
-
values
public Collection<? extends V> values()
-
clear
public void clear()
-
remove
public Collection<V> remove(K key)
-
-