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 void
clear()
boolean
containsKey(K key)
boolean
containsScalarValue(V value)
protected Collection<V>
createCollection()
protected Collection<V>
createEmptyCollection()
protected Map<K,Collection<V>>
createMap()
Collection<V>
get(K key)
boolean
isEmpty()
Set<K>
keySet()
void
put(K key, Collection<V> values)
void
putValue(K key, V value)
Collection<V>
remove(K key)
void
removeValue(K key, V value)
int
size()
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)
-
-