com.hazelcast.core
K
- V
- public interface BaseMultiMap<K,V> extends DistributedObject
MultiMap
,
TransactionalMultiMap
Modifier and Type | Method and Description |
---|---|
Collection<V> |
get(K key)
Returns the collection of values associated with the key.
|
boolean |
put(K key,
V value)
Stores a key-value pair in the multimap.
|
Collection<V> |
remove(Object key)
Removes all the entries associated with the given key.
|
boolean |
remove(Object key,
Object value)
Removes the given key value pair from the multimap.
|
int |
size()
Returns the number of key-value pairs in the multimap.
|
int |
valueCount(K key)
Returns the number of values matching the given key in the multimap.
|
destroy, getId, getName, getPartitionKey, getServiceName
boolean put(K key, V value)
key
- the key to be storedvalue
- the value to be storedCollection<V> get(K key)
key
- the key whose associated values are returnedboolean remove(Object key, Object value)
key
- the key of the entry to removevalue
- the value of the entry to removeCollection<V> remove(Object key)
key
- the key of the entries to removeint valueCount(K key)
key
- the key whose number of values is to be returnedint size()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.