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
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
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>
putIfAbsent
in interface Map<K,V>
Copyright © 2022. All rights reserved.