public interface AsyncMultiMapProxy<K,V>
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
clear()
Clears the map.
|
CompletableFuture<Boolean> |
containsEntry(K key,
V value)
Checks whether the map contains an entry.
|
CompletableFuture<Boolean> |
containsKey(K key)
Checks whether the map contains a key.
|
CompletableFuture<Boolean> |
containsValue(V value)
Checks whether the map contains a value.
|
CompletableFuture<Set<Map.Entry<K,V>>> |
entrySet()
Gets a set of entries in the map.
|
CompletableFuture<Collection<V>> |
get(K key)
Gets a value from the map.
|
CompletableFuture<Collection<V>> |
getOrDefault(K key,
Collection<V> defaultValue)
Gets the value of a key or the given default value if the key does not exist.
|
CompletableFuture<Boolean> |
isEmpty()
Checks whether the map is empty.
|
CompletableFuture<Set<K>> |
keySet()
Gets a set of keys in the map.
|
CompletableFuture<Collection<V>> |
put(K key,
V value)
Puts a value in the map.
|
CompletableFuture<Void> |
putAll(Map<? extends K,? extends Collection<V>> m)
Puts a map of values in the map.
|
CompletableFuture<Collection<V>> |
remove(K key)
Removes a value from the map.
|
CompletableFuture<Boolean> |
remove(K key,
V value)
Removes a key and value from the map.
|
CompletableFuture<Collection<V>> |
replace(K key,
Collection<V> value)
Replaces a key with the given value.
|
CompletableFuture<Boolean> |
replace(K key,
V oldValue,
V newValue)
Replaces a key and value in the map.
|
CompletableFuture<Void> |
replaceAll(java.util.function.BiFunction<? super K,? super Collection<V>,? extends Collection<V>> function)
Replaces values in the map.
|
CompletableFuture<Integer> |
size()
Gets the map size.
|
CompletableFuture<Collection<V>> |
values()
Gets a collection of values in the map.
|
CompletableFuture<Integer> size()
CompletableFuture<Boolean> isEmpty()
CompletableFuture<Boolean> containsKey(K key)
key - The key to check.CompletableFuture<Boolean> containsValue(V value)
value - The value to check.CompletableFuture<Boolean> containsEntry(K key, V value)
key - The key to check.value - The value to check.CompletableFuture<Collection<V>> get(K key)
key - The key to get.CompletableFuture<Collection<V>> put(K key, V value)
key - The key to set.value - The value to set.CompletableFuture<Collection<V>> remove(K key)
key - The key to remove.CompletableFuture<Boolean> remove(K key, V value)
key - The key to remove.value - The value to remove.CompletableFuture<Void> putAll(Map<? extends K,? extends Collection<V>> m)
m - The put to put.CompletableFuture<Void> clear()
CompletableFuture<Set<K>> keySet()
CompletableFuture<Collection<V>> values()
CompletableFuture<Set<Map.Entry<K,V>>> entrySet()
CompletableFuture<Collection<V>> getOrDefault(K key, Collection<V> defaultValue)
key - The key to get.defaultValue - The default value to return if the key does not exist.CompletableFuture<Void> replaceAll(java.util.function.BiFunction<? super K,? super Collection<V>,? extends Collection<V>> function)
function - The serializable function with which to replace values.CompletableFuture<Boolean> replace(K key, V oldValue, V newValue)
key - The key to replace.oldValue - The value to replace.newValue - The value with which to replace the given key and value.CompletableFuture<Collection<V>> replace(K key, Collection<V> value)
key - The key to replace.value - The value with which to replace the given key.Copyright © 2013-2015. All Rights Reserved.