Key - the keys of the multimapValue - the values of the multimappublic interface Multimap<Key,Value>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Key key,
Value value)
Stores the key-value pair in this multimap
|
void |
clear()
Removes all key-value pairs of this multimap
|
boolean |
contains(Key key,
Value value)
Tests if the key-value pair occurs in this multimap
|
Collection<Value> |
get(Key key)
Returns the collection of values associated with the given key in this
multimap
|
boolean |
isEmpty()
Checks if this multimap is empty
|
Set<Key> |
keySet() |
boolean |
remove(Object key,
Object value)
Removes the key-value pair from this multimap
|
boolean contains(Key key, Value value)
key - the key of the pairvalue - the value of the pairboolean add(Key key, Value value)
key - the key of the pairvalue - the value of the pairCollection<Value> get(Key key)
key - the key for which to retrieve the valuesboolean remove(Object key, Object value)
key - the key of the pairvalue - the value of the pairboolean isEmpty()
void clear()
Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.