public class TransactionalHashMap<K,V> extends AbstractMap<K,V> implements ConcurrentMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
TransactionalHashMap() |
TransactionalHashMap(int nBins) |
TransactionalHashMap(Map<? extends K,? extends V> m) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object k) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object k) |
boolean |
isEmpty() |
V |
put(K k,
V v) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
putIfAbsent(K k,
V v) |
V |
remove(Object k) |
boolean |
remove(Object k,
Object v) |
V |
replace(K k,
V v) |
boolean |
replace(K k,
V oldv,
V newv) |
int |
size() |
clone, containsValue, equals, hashCode, keySet, toString, values
public TransactionalHashMap()
public TransactionalHashMap(int nBins)
public int size()
public boolean isEmpty()
public boolean containsKey(Object k)
containsKey
in interface Map<K,V>
containsKey
in class AbstractMap<K,V>
public void clear()
public V putIfAbsent(K k, V v)
putIfAbsent
in interface ConcurrentMap<K,V>
public boolean remove(Object k, Object v)
remove
in interface ConcurrentMap<K,V>
public boolean replace(K k, V oldv, V newv)
replace
in interface ConcurrentMap<K,V>
Copyright © 2018. All rights reserved.