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() |
Collection<Value> |
remove(Object key)
Removes all values for the given key
|
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 pairtrue if this multimap contains the pair, false
otherwiseboolean add(Key key, Value value)
key - the key of the pairvalue - the value of the pairtrue if the multimap has changed as a result of the
operation, false otherwiseCollection<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 pairtrue if the multimap has changed as a result of the
operation, false otherwiseCollection<Value> remove(Object key)
key - the key for which to remove the valuesboolean isEmpty()
true if this multimap is empty, false otherwisevoid clear()
Copyright © 2011–2024 Live Ontologies Project. All rights reserved.