K
- key typeV
- value typepublic interface RListMultimapReactive<K,V> extends RMultimapReactive<K,V>
Modifier and Type | Method and Description |
---|---|
RListReactive<V> |
get(K key)
Returns a view List of the values associated with
key in this
multimap, if any. |
org.reactivestreams.Publisher<List<V>> |
getAll(K key)
Returns all elements at once.
|
org.reactivestreams.Publisher<List<V>> |
removeAll(Object key)
Removes all values associated with the key
key . |
org.reactivestreams.Publisher<List<V>> |
replaceValues(K key,
Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing
values for that key.
|
containsEntry, containsKey, containsValue, fastRemove, keySize, put, putAll, readAllKeySet, remove, size
RListReactive<V> get(K key)
key
in this
multimap, if any. Note that when containsKey(key)
is false, this
returns an empty collection, not null
.
Changes to the returned collection will update the underlying multimap, and vice versa.
key
- - map keyorg.reactivestreams.Publisher<List<V>> getAll(K key)
key
- - map keyorg.reactivestreams.Publisher<List<V>> removeAll(Object key)
key
.
Once this method returns, key
will not be mapped to any values
Use RMultimapReactive.fastRemove(K...)
if values are not needed.
key
- - map keyorg.reactivestreams.Publisher<List<V>> replaceValues(K key, Iterable<? extends V> values)
If values
is empty, this is equivalent to
removeAll(Object)
.
key
- - map keyvalues
- - map valuesCopyright © 2014–2018 The Redisson Project. All rights reserved.