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 values for that key in the map.
|
void |
get(K k,
Handler<AsyncResult<ChoosableIterable<V>>> resultHandler)
Get the values from the map for the key.
|
void |
remove(K k,
V v,
Handler<AsyncResult<Boolean>> completionHandler)
Remove a value from the values of that key in the map.
|
void |
removeAllForValue(V v,
Handler<AsyncResult<Void>> completionHandler)
Remove the specified value from all values found
equals associated to all keys in the map. |
void |
removeAllMatching(java.util.function.Predicate<V> p,
Handler<AsyncResult<Void>> completionHandler)
Remove values which satisfies the given predicate in all keys.
|
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)
ChoosableIterable
must
be returned.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 with true
if the value was found and false
otherwise,
when the remove is completevoid removeAllForValue(V v, Handler<AsyncResult<Void>> completionHandler)
equals
associated to all keys in the map.v
- The valuecompletionHandler
- This will be called when the remove is completevoid removeAllMatching(java.util.function.Predicate<V> p, Handler<AsyncResult<Void>> completionHandler)
p
- The predicatecompletionHandler
- This will be called when the remove is completeCopyright © 2023 Eclipse. All rights reserved.