K - Type of keys.V - Type of values.public class MapTxContext<K,V> extends Object implements Map<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cleared |
protected Map<K,V> |
puts |
protected boolean |
readOnly |
protected Set<K> |
removes |
protected RWLockedMap<K,V> |
rwLockedMap |
protected Object |
transaction |
| Constructor and Description |
|---|
MapTxContext(RWLockedMap<K,V> rwLockedMap,
Object transaction)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
commit()
Writes the temporary changes back to the Map.
|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
Object |
getTransaction() |
boolean |
isEmpty() |
boolean |
isReadOnly() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllprotected boolean cleared
protected boolean readOnly
protected final RWLockedMap<K,V> rwLockedMap
protected final Object transaction
public MapTxContext(RWLockedMap<K,V> rwLockedMap, Object transaction)
public void commit()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public Object getTransaction()
public boolean isReadOnly()
Copyright © 2011–2015 Everit Kft.. All rights reserved.