Key - the keys of the multimapValue - the values of the multimappublic class MultimapQueueImpl<Key,Value> extends Object implements MultimapQueue<Key,Value>
MultimapQueue backed by a Multimap.| Constructor and Description |
|---|
MultimapQueueImpl(Multimap<Key,Value> multimap) |
| 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
|
Map.Entry<Key,Collection<Value>> |
takeEntry() |
public boolean contains(Key key, Value value)
Multimappublic boolean add(Key key, Value value)
Multimappublic Collection<Value> get(Key key)
Multimappublic boolean remove(Object key, Object value)
Multimappublic Collection<Value> remove(Object key)
Multimappublic boolean isEmpty()
Multimappublic void clear()
Multimappublic Map.Entry<Key,Collection<Value>> takeEntry()
takeEntry in interface MultimapQueue<Key,Value>null if the queue is emptyCopyright © 2011–2024 Live Ontologies Project. All rights reserved.