K
- keyV
- valuepublic interface RListMultimap<K,V> extends RMultimap<K,V>
Modifier and Type | Method and Description |
---|---|
RList<V> |
get(K key)
Returns a view collection of the values associated with
key in this
multimap, if any. |
List<V> |
getAll(K key)
Returns all elements at once.
|
List<V> |
removeAll(Object key)
Removes all values associated with the key
key . |
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.
|
clear, containsEntry, containsKey, containsValue, entries, fastRemove, getCountDownLatch, getFairLock, getLock, getPermitExpirableSemaphore, getReadWriteLock, getSemaphore, isEmpty, keySet, keySize, put, putAll, readAllKeySet, remove, size, values
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
containsEntryAsync, containsKeyAsync, containsValueAsync, fastRemoveAsync, getAllAsync, keySizeAsync, putAllAsync, putAsync, readAllKeySetAsync, removeAllAsync, removeAsync, replaceValuesAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
RList<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.
Because a RListMultimap
may has duplicates among values mapped by key and stores insertion order
method returns a List
, instead of the Collection
specified in the RMultimap
interface.
List<V> getAll(K key)
Because a RListMultimap
may has duplicates among values mapped by key and stores insertion order
method returns a List
, instead of the Collection
specified in the RMultimap
interface.
List<V> removeAll(Object key)
key
.
Once this method returns, key
will not be mapped to any values
Use RMultimap.fastRemove(K...)
if values are not needed.
Because a RListMultimap
may has duplicates among values mapped by key and stores insertion order
method returns a List
, instead of the Collection
specified in the RMultimap
interface.
List<V> replaceValues(K key, Iterable<? extends V> values)
If values
is empty, this is equivalent to
removeAll(key)
.
Because a RListMultimap
may has duplicates among values mapped by key and stores insertion order
method returns a List
, instead of the Collection
specified in the RMultimap
interface.
replaceValues
in interface RMultimap<K,V>
key
- - map keyvalues
- - map valuesCopyright © 2014–2019 The Redisson Project. All rights reserved.