K
- key typeV
- value typepublic interface RMultimapRx<K,V> extends RExpirableRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.Flowable<Boolean> |
containsEntry(Object key,
Object value)
Returns
true if this multimap contains at least one key-value pair
with the key key and the value value . |
io.reactivex.Flowable<Boolean> |
containsKey(Object key)
Returns
true if this multimap contains at least one key-value pair
with the key key . |
io.reactivex.Flowable<Boolean> |
containsValue(Object value)
Returns
true if this multimap contains at least one key-value pair
with the value value . |
io.reactivex.Flowable<Long> |
fastRemove(K... keys)
Removes
keys from map by one operation
Works faster than RMultimap.remove but not returning
the value associated with key |
io.reactivex.Flowable<Integer> |
keySize()
Returns the number of key-value pairs in this multimap.
|
io.reactivex.Flowable<Boolean> |
put(K key,
V value)
Stores a key-value pair in this multimap.
|
io.reactivex.Flowable<Boolean> |
putAll(K key,
Iterable<? extends V> values)
Stores a key-value pair in this multimap for each of
values , all
using the same key, key . |
io.reactivex.Flowable<Set<K>> |
readAllKeySet()
Read all keys at once
|
io.reactivex.Flowable<Boolean> |
remove(Object key,
Object value)
Removes a single key-value pair with the key
key and the value
value from this multimap, if such exists. |
io.reactivex.Flowable<Integer> |
size()
Returns the number of key-value pairs in this multimap.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
io.reactivex.Flowable<Integer> size()
io.reactivex.Flowable<Boolean> containsKey(Object key)
true
if this multimap contains at least one key-value pair
with the key key
.key
- - map keytrue
if contains a keyio.reactivex.Flowable<Boolean> containsValue(Object value)
true
if this multimap contains at least one key-value pair
with the value value
.value
- - map valuetrue
if contains a valueio.reactivex.Flowable<Boolean> containsEntry(Object key, Object value)
true
if this multimap contains at least one key-value pair
with the key key
and the value value
.key
- - map keyvalue
- - map valuetrue
if contains an entryio.reactivex.Flowable<Boolean> put(K key, V value)
Some multimap implementations allow duplicate key-value pairs, in which
case put
always adds a new key-value pair and increases the
multimap size by 1. Other implementations prohibit duplicates, and storing
a key-value pair that's already in the multimap has no effect.
key
- - map keyvalue
- - map valuetrue
if the method increased the size of the multimap, or
false
if the multimap already contained the key-value pair and
doesn't allow duplicatesio.reactivex.Flowable<Boolean> remove(Object key, Object value)
key
and the value
value
from this multimap, if such exists. If multiple key-value
pairs in the multimap fit this description, which one is removed is
unspecified.key
- - map keyvalue
- - map valuetrue
if the multimap changedio.reactivex.Flowable<Boolean> putAll(K key, Iterable<? extends V> values)
values
, all
using the same key, key
. Equivalent to (but expected to be more
efficient than):
for (V value : values) {
put(key, value);
}
In particular, this is a no-op if values
is empty.
key
- - map keyvalues
- - map valuestrue
if the multimap changedio.reactivex.Flowable<Integer> keySize()
io.reactivex.Flowable<Long> fastRemove(K... keys)
keys
from map by one operation
Works faster than RMultimap.remove
but not returning
the value associated with key
keys
- - map keysCopyright © 2014–2018 The Redisson Project. All rights reserved.