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,ReadOnlySegmentAwareMap
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 voidclear()Vcompute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)VcomputeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)VcomputeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)booleancontainsKey(Object key)booleancontainsValue(Object value)protected abstract Map<K,V>delegate()Set<Map.Entry<K,V>>entrySet()voidforEach(BiConsumer<? super K,? super V> action)Vget(Object key)VgetOrDefault(Object key, V defaultValue)booleanisEmpty()Set<K>keySet()Vmerge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)Vput(K key, V value)voidputAll(Map<? extends K,? extends V> m)VputIfAbsent(K key, V value)Vremove(Object key)booleanremove(Object key, Object value)Vreplace(K key, V value)booleanreplace(K key, V oldValue, V newValue)voidreplaceAll(BiFunction<? super K,? super V,? extends V> function)intsize()Collection<V>values() 
 - 
 
- 
- 
Method Detail
- 
containsKey
public boolean containsKey(Object key)
- Specified by:
 containsKeyin interfaceMap<K,V>
 
- 
containsValue
public boolean containsValue(Object value)
- Specified by:
 containsValuein interfaceMap<K,V>
 
- 
getOrDefault
public V getOrDefault(Object key, V defaultValue)
- Specified by:
 getOrDefaultin interfaceMap<K,V>
 
- 
replaceAll
public void replaceAll(BiFunction<? super K,? super V,? extends V> function)
- Specified by:
 replaceAllin interfaceMap<K,V>
 
- 
computeIfAbsent
public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
- Specified by:
 computeIfAbsentin interfaceMap<K,V>
 
- 
computeIfPresent
public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
- Specified by:
 computeIfPresentin interfaceMap<K,V>
 
- 
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)
 
 - 
 
 -