K - the key typeV - the value typeConcurrentMultiDequeMap instead@Deprecated public class ConcurrentMultiHashMap<K,V> extends Object
| Constructor and Description |
|---|
ConcurrentMultiHashMap()
Deprecated.
Create a concurrent multi hash map.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(K key)
Deprecated.
Checks if there are values associated with a key in the multimap.
|
ConcurrentLinkedQueue<V> |
get(K key)
Deprecated.
Returns the queue associated with the given key.
|
Set<K> |
keys()
Deprecated.
|
V |
poll()
Deprecated.
Retrieves and removes one item from the multi map.
|
V |
poll(K key)
Deprecated.
Retrieves the least recently used item in the queue for the given key.
|
V |
put(K key,
V value)
Deprecated.
Add a new key value pair to the multimap.
|
boolean |
remove(K key,
V value)
Deprecated.
Removes a key value pair in the multimap.
|
int |
size()
Deprecated.
|
Set<V> |
values()
Deprecated.
|
public ConcurrentMultiHashMap()
public V put(K key, V value)
key - the key to putvalue - the value to putpublic ConcurrentLinkedQueue<V> get(K key)
key - the key to querypublic V poll()
public V poll(K key)
key - the key to poll an itempublic int size()
public boolean containsKey(K key)
key - the key to checkpublic Set<K> keys()
public Set<V> values()
public boolean remove(K key, V value)
key - the key to removevalue - the value to remove/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/