K
- key typeV
- value typepublic interface Multimap<K,V>
Modifier and Type | Method and Description |
---|---|
void | clear() Clears the multimap |
Collection<V> | get(K key) Get all values associated with the key |
boolean | isEmpty() Checks if multimap is empty |
Collection<K> | keys() Keys in the map |
void | merge(Multimap<K,V> other) |
void | put(K key, V value) Put the element pair. |
void | putAll(K k, Collection<V> vs) Put multiple pairs. |
void | remove(K key) |
Collection<V> | values() |
void putAll(K k, Collection<V> vs)
k
- keyvs
- valuesCollection<V> get(K key)
key
- keyboolean isEmpty()
void clear()
Collection<K> keys()
Collection<V> values()
void remove(K key)
Copyright © 2012-2015 Oracle. All Rights Reserved.