public class TransferMap<K,V> extends Object implements BlockingMap<K,V>
| Constructor and Description |
|---|
TransferMap() |
| Modifier and Type | Method and Description |
|---|---|
V |
addElementAt(K key,
V value,
int index) |
void |
clear() |
void |
clear(K key) |
boolean |
containsKey(K key) |
static <K,V> TransferMap<K,V> |
create() |
Collection<V> |
elements(K key) |
V |
getAndWait(K key) |
V |
getAndWait(K key,
long timeout) |
V |
getElement(K key,
int index) |
int |
indexOf(K key,
V value) |
Set<K> |
keySet() |
V |
lastAndWait(K key) |
V |
lastAndWait(K key,
long timeout) |
int |
lastIndexOf(K key,
V value) |
V |
pollFirst(K key) |
V |
pollLast(K key) |
V |
put(K key,
V value) |
void |
putFirst(K key,
Collection<V> newElements) |
void |
putLast(K key,
Collection<V> newElements) |
V |
remove(K key,
int index) |
void |
replaceValues(K key,
Collection<V> newElements) |
int |
size() |
int |
size(K key) |
public static <K,V> TransferMap<K,V> create()
public V getAndWait(K key, long timeout)
getAndWait in interface BlockingMap<K,V>public V getAndWait(K key)
getAndWait in interface BlockingMap<K,V>public V lastAndWait(K key) throws InterruptedException
lastAndWait in interface BlockingMap<K,V>InterruptedExceptionpublic V lastAndWait(K key, long timeout) throws InterruptedException
lastAndWait in interface BlockingMap<K,V>InterruptedExceptionpublic V getElement(K key, int index)
getElement in interface BlockingMap<K,V>public int size()
size in interface BlockingMap<K,V>public void clear()
clear in interface BlockingMap<K,V>public int size(K key)
size in interface BlockingMap<K,V>public V addElementAt(K key, V value, int index)
addElementAt in interface BlockingMap<K,V>public void putLast(K key, Collection<V> newElements)
putLast in interface BlockingMap<K,V>public void clear(K key)
clear in interface BlockingMap<K,V>public void putFirst(K key, Collection<V> newElements)
putFirst in interface BlockingMap<K,V>public boolean containsKey(K key)
containsKey in interface BlockingMap<K,V>public void replaceValues(K key, Collection<V> newElements)
replaceValues in interface BlockingMap<K,V>public Collection<V> elements(K key)
elements in interface BlockingMap<K,V>public int lastIndexOf(K key, V value)
lastIndexOf in interface BlockingMap<K,V>Copyright © 2016. All Rights Reserved.