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, getLock, getReadWriteLock, isEmpty, keySet, keySize, put, putAll, readAllKeySet, remove, size, valuesclearExpire, expire, expireAt, expireAt, remainTimeToLivecopy, delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlinkcontainsEntryAsync, containsKeyAsync, containsValueAsync, fastRemoveAsync, getAllAsync, keySizeAsync, putAllAsync, putAsync, readAllKeySetAsync, removeAllAsync, removeAsync, replaceValuesAsync, sizeAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncRList<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–2018 The Redisson Project. All rights reserved.