K
- keyV
- valuepublic interface RListMultimap<K,V> extends RMultimap<K,V>
Modifier and Type | Method and Description |
---|---|
List<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, isEmpty, keySet, put, putAll, remove, size, values
clearExpire, expire, expireAt, expireAt, remainTimeToLive
delete, getName, isExists, migrate, move, rename, renamenx
containsEntryAsync, containsKeyAsync, containsValueAsync, fastRemoveAsync, getAllAsync, putAllAsync, putAsync, removeAllAsync, removeAsync, replaceValuesAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync
List<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,
so it will not appear in RMultimap.keySet()
, #asMap()
, or any other
views.
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>
Copyright © 2014–2016. All rights reserved.