Package org.infinispan.commons.util
Class AbstractDelegatingMap<K,V>
- java.lang.Object
-
- org.infinispan.commons.util.AbstractDelegatingMap<K,V>
-
- All Implemented Interfaces:
Map<K,V>
- Direct Known Subclasses:
AbstractDelegatingConcurrentMap
public abstract class AbstractDelegatingMap<K,V> extends Object implements Map<K,V>
-
-
Constructor Summary
Constructors Constructor Description AbstractDelegatingMap()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
clear()
V
compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
V
computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
V
computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
boolean
containsKey(Object key)
boolean
containsValue(Object value)
protected abstract Map<K,V>
delegate()
Set<Map.Entry<K,V>>
entrySet()
void
forEach(BiConsumer<? super K,? super V> action)
V
get(Object key)
V
getOrDefault(Object key, V defaultValue)
boolean
isEmpty()
Set<K>
keySet()
V
merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
V
put(K key, V value)
void
putAll(Map<? extends K,? extends V> m)
V
putIfAbsent(K key, V value)
V
remove(Object key)
boolean
remove(Object key, Object value)
V
replace(K key, V value)
boolean
replace(K key, V oldValue, V newValue)
void
replaceAll(BiFunction<? super K,? super V,? extends V> function)
int
size()
Collection<V>
values()
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Object key)
-
containsValue
public boolean containsValue(Object value)
-
replaceAll
public void replaceAll(BiFunction<? super K,? super V,? extends V> function)
-
computeIfPresent
public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
-
merge
public V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
-
forEach
public void forEach(BiConsumer<? super K,? super V> action)
-
clear
public void clear()
-
values
public Collection<V> values()
-
-