K - key typeV - value typeDelegatingMultimap, HashMultimap, HashsetMultimap, TreeMultimappublic interface Multimap<K,V>
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Clears the multimap
|
Collection<Map.Entry<K,Collection<V>>> |
entrySet() |
Get all associations of 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 - keyCollection<Map.Entry<K,Collection<V>>> entrySet()
boolean isEmpty()
void clear()
Collection<K> keys()
Collection<V> values()
void remove(K key)
Copyright © 2012-2017 Oracle. All Rights Reserved.