public interface AsyncMultiMap<K,V>
Modifier and Type | Method and Description |
---|---|
void |
add(K k,
V v,
Handler<AsyncResult<Void>> completionHandler)
Add a value to the list of values for that key in the map
|
void |
get(K k,
Handler<AsyncResult<ChoosableIterable<V>>> resultHandler)
Get a list of values from the map for the key
|
void |
remove(K k,
V v,
Handler<AsyncResult<Boolean>> completionHandler)
Remove a value from the list of values for that key in the map.
|
void |
removeAllForValue(V v,
Handler<AsyncResult<Void>> completionHandler)
Remove all the specified values from all keys in the map
|
void add(K k, V v, Handler<AsyncResult<Void>> completionHandler)
k
- The keyv
- The valuecompletionHandler
- This will be called when the entry has been addedvoid get(K k, Handler<AsyncResult<ChoosableIterable<V>>> resultHandler)
k
- The keyresultHandler
- This will be called with the list of values for the key. The type of the values returned
must be ChoosableIterable
void remove(K k, V v, Handler<AsyncResult<Boolean>> completionHandler)
k
- The keyv
- The valuecompletionHandler
- This will be called when the remove is completevoid removeAllForValue(V v, Handler<AsyncResult<Void>> completionHandler)
v
- The valuecompletionHandler
- This will be called when the remove is completeCopyright © 2015. All Rights Reserved.