Package com.hazelcast.multimap
Interface BaseMultiMap<K,V> 
- Type Parameters:
 K- type of the multimap keyV- type of the multimap value
- All Superinterfaces:
 DistributedObject
- All Known Subinterfaces:
 MultiMap<K,,V> TransactionalMultiMap<K,V> 
Base interface for Hazelcast distributed multi-maps.
- See Also:
 
- 
Method Summary
Modifier and TypeMethodDescriptionReturns the collection of values associated with the key.booleanStores a key-value pair in the multimap.Removes all the entries associated with the given key.booleanRemoves the given key value pair from the multimap.intsize()Returns the number of key-value pairs in the multimap.intvalueCount(K key) Returns the number of values matching the given key in the multimap.Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getDestroyContextForTenant, getName, getPartitionKey, getServiceName 
- 
Method Details
- 
put
Stores a key-value pair in the multimap.- Parameters:
 key- the key to be storedvalue- the value to be stored- Returns:
 - true if the size of the multimap is increased, false if the multimap already contains the key-value pair.
 
 - 
get
Returns the collection of values associated with the key.- Parameters:
 key- the key whose associated values are returned- Returns:
 - the collection of the values associated with the key
 
 - 
remove
Removes the given key value pair from the multimap.- Parameters:
 key- the key of the entry to removevalue- the value of the entry to remove- Returns:
 - true if the size of the multimap changed after the remove operation, false otherwise.
 
 - 
remove
Removes all the entries associated with the given key.- Parameters:
 key- the key of the entries to remove- Returns:
 - the collection of removed values associated with the given key. The returned collection might be modifiable, but it has no effect on the multimap.
 
 - 
valueCount
Returns the number of values matching the given key in the multimap.- Parameters:
 key- the key whose number of values is to be returned- Returns:
 - the number of values matching the given key in the multimap
 
 - 
size
int size()Returns the number of key-value pairs in the multimap.- Returns:
 - the number of key-value pairs in the multimap
 
 
 -