public interface ConcurrentLongObjectMap<V>
ConcurrentMap to long keysConcurrentMap| Modifier and Type | Interface and Description |
|---|---|
static interface |
ConcurrentLongObjectMap.LongEntry<V> |
| Modifier and Type | Method and Description |
|---|---|
V |
cacheOrGet(long key,
V value) |
void |
clear() |
boolean |
containsKey(long key) |
boolean |
containsValue(V value) |
java.util.Enumeration<V> |
elements() |
java.lang.Iterable<ConcurrentLongObjectMap.LongEntry<V>> |
entries() |
V |
get(long key) |
boolean |
isEmpty() |
long [] |
keys() |
V |
put(long key,
V value) |
V |
putIfAbsent(long key,
V value) |
V |
remove(long key) |
boolean |
remove(long key,
V value) |
V |
replace(long key,
V value) |
boolean |
replace(long key,
V oldValue,
V newValue) |
int |
size() |
java.util.Collection<V> |
values() |
boolean remove(long key,
V value)
boolean replace(long key,
V oldValue,
V newValue)
key - key with which the specified value is associatedoldValue - value expected to be associated with the specified keynewValue - value to be associated with the specified keytrue if the value was replacedConcurrentMap.replace(java.lang.Object, java.lang.Object, java.lang.Object)V replace(long key, V value)
key - key with which the specified value is associatedvalue - value to be associated with the specified keynull if there was no mapping for the key.
(A null return can also indicate that the map
previously associated null with the key,
if the implementation supports null values.)ConcurrentMap.replace(java.lang.Object, java.lang.Object)V get(long key)
V remove(long key)
boolean containsKey(long key)
void clear()
java.lang.Iterable<ConcurrentLongObjectMap.LongEntry<V>> entries()
long [] keys()
int size()
boolean isEmpty()
java.util.Enumeration<V> elements()
java.util.Collection<V> values()
boolean containsValue(V value)