Go to the documentation of this file.
9 package javolution.util.internal.map;
11 import java.util.Iterator;
34 public Entry<K, V>
next() {
40 public void remove() {
41 if (
current ==
null)
throw new IllegalStateException();
57 public synchronized void clear() {
82 public V
get(Object key) {
102 public synchronized V
put(K key, V value) {
103 V v =
target().put(key, value);
109 public synchronized void putAll(Map<? extends K, ? extends V> m) {
116 V v =
target().putIfAbsent(key, value);
122 public synchronized V
remove(Object key) {
123 V v =
target().remove(key);
129 public synchronized boolean remove(Object key, Object value) {
130 boolean changed =
target().remove(key, value);
136 public synchronized V
replace(K key, V value) {
137 V v =
target().replace(key, value);
143 public synchronized boolean replace(K key, V oldValue, V newValue) {
144 boolean changed =
target().replace(key, oldValue, newValue);
154 @SuppressWarnings(
"unchecked")
170 target().update(action, view);
186 }
catch (CloneNotSupportedException e) {
187 throw new Error(
"Cannot happen since target is Cloneable.");
final boolean updateInProgress()
MapService< K, V > targetView()
synchronized boolean replace(K key, V oldValue, V newValue)
synchronized V remove(Object key)
volatile MapService< K, V > immutable
Iterator< Entry< K, V > > iterator()
AtomicMapImpl(MapService< K, V > target)
synchronized void update(Consumer< MapService< K, V >> action, MapService< K, V > view)
synchronized void clear()
MapService< K, V > threadSafe()
Equality<? super V > valueComparator()
boolean containsValue(Object value)
synchronized AtomicMapImpl< K, V > clone()
MapService< K, V > cloneTarget()
MapService< K, V >[] split(int n)
synchronized V replace(K key, V value)
synchronized void putAll(Map<? extends K, ? extends V > m)
boolean containsKey(Object key)
transient Thread updatingThread
static final long serialVersionUID
Equality<? super K > keyComparator()
synchronized V put(K key, V value)
MapService< K, V > target
final Iterator< Entry< K, V > > targetIterator
synchronized V putIfAbsent(K key, V value)