K - The map key type.V - The map value type.public class DefaultAsyncMultiMap<K,V> extends Object implements AsyncMultiMap<K,V>
| Constructor and Description |
|---|
DefaultAsyncMultiMap(String address,
String name,
org.vertx.java.core.Vertx vertx) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all keys from the map.
|
void |
clear(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Clears all keys from the map.
|
void |
containsEntry(K key,
V value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
Checks if the map contains a key/value pair.
|
void |
containsKey(K key,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
Checks if the map contains a key.
|
void |
containsValue(V value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
Checks if the map contains a value.
|
void |
get(K key,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
Gets a key value in the map.
|
void |
isEmpty(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
Checks whether the map is empty.
|
void |
keySet(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Set<K>>> resultHandler)
Gets a set of keys in the map.
|
String |
name()
Returns the map name.
|
void |
put(K key,
V value)
Sets a key value in the map.
|
void |
put(K key,
V value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
Sets a key value in the map.
|
void |
remove(K key)
Removes a key from the map.
|
void |
remove(K key,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
Removes a key from the map.
|
void |
remove(K key,
V value)
Removes a value from a key in the map.
|
void |
remove(K key,
V value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
Removes a value from a key in the map.
|
void |
size(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Integer>> resultHandler)
Gets the current size of the map.
|
void |
values(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
Gets a collection of values in the map.
|
public String name()
AsyncMultiMapname in interface AsyncMultiMap<K,V>public void put(K key, V value)
AsyncMultiMapput in interface AsyncMultiMap<K,V>key - The key to set.value - The value to set.public void put(K key, V value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
AsyncMultiMapput in interface AsyncMultiMap<K,V>key - The key to set.value - The value to setdoneHandler - An asynchronous handler to be called once complete.public void get(K key, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
AsyncMultiMapget in interface AsyncMultiMap<K,V>key - The key to get.resultHandler - An asynchronous handler to be called with the result.public void remove(K key)
AsyncMultiMapremove in interface AsyncMultiMap<K,V>key - The key to remove.public void remove(K key, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
AsyncMultiMapremove in interface AsyncMultiMap<K,V>key - The key to remove.resultHandler - An asynchronous handler to be called once complete.public void remove(K key, V value)
AsyncMultiMapremove in interface AsyncMultiMap<K,V>key - The key from which to remove the value.value - The value to remove.public void remove(K key, V value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
AsyncMultiMapremove in interface AsyncMultiMap<K,V>key - The key from which to remove the value.value - The value to remove.doneHandler - An asynchronous handler to be called once complete.public void containsKey(K key, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
AsyncMultiMapcontainsKey in interface AsyncMultiMap<K,V>key - The key to check.resultHandler - An asynchronous handler to be called with the result.public void containsValue(V value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
AsyncMultiMapcontainsValue in interface AsyncMultiMap<K,V>value - The value to check.resultHandler - An asynchronous handler to be called with the result.public void containsEntry(K key, V value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
AsyncMultiMapcontainsEntry in interface AsyncMultiMap<K,V>key - The key to check.value - The value to check.resultHandler - An asynchronous handler to be called with the result.public void keySet(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Set<K>>> resultHandler)
AsyncMultiMapkeySet in interface AsyncMultiMap<K,V>resultHandler - An asynchronous handler to be called with the key set once complete.public void values(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
AsyncMultiMapvalues in interface AsyncMultiMap<K,V>resultHandler - An asynchronous handler to be called with the values once complete.public void size(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Integer>> resultHandler)
AsyncMultiMapsize in interface AsyncMultiMap<K,V>resultHandler - An asynchronous handler to be called with the result.public void isEmpty(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
AsyncMultiMapisEmpty in interface AsyncMultiMap<K,V>resultHandler - An asynchronous handler to be called with the result indicating
whether the map is empty.public void clear()
AsyncMultiMapclear in interface AsyncMultiMap<K,V>public void clear(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
AsyncMultiMapclear in interface AsyncMultiMap<K,V>doneHandler - An asynchronous handler to be called once complete.Copyright © 2013-2014. All Rights Reserved.