Class WrapperCollections.AbstractWrapperMap<K,V>
java.lang.Object
com.tangosol.util.WrapperCollections.AbstractWrapperMap<K,V>
- All Implemented Interfaces:
Serializable,Map<K,V>
- Direct Known Subclasses:
WrapperCollections.AbstractWrapperSortedMap
- Enclosing class:
WrapperCollections
public abstract static class WrapperCollections.AbstractWrapperMap<K,V>
extends Object
implements Map<K,V>, Serializable
Map implementation which delegates all calls to another Map.
- Author:
- mf 2007.07.05, rhl 2010.01.26
- See Also:
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Map to which this wrapper delegates. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructorprotectedAbstractWrapperMap(Map<K, V> map) Create an AbstractWrapperMap which delegates to the specified Map. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) booleancontainsKey(Object oKey) booleancontainsValue(Object oValue) entrySet()booleanvoidforEach(BiConsumer<? super K, ? super V> action) Return the Map to which all operations should be delegated to.getOrDefault(Object key, V defaultValue) inthashCode()booleanisEmpty()keySet()voidputIfAbsent(K key, V value) booleanbooleanvoidreplaceAll(BiFunction<? super K, ? super V, ? extends V> function) intsize()toString()values()
-
Field Details
-
m_mapDelegate
-
-
Constructor Details
-
AbstractWrapperMap
protected AbstractWrapperMap()Default constructor -
AbstractWrapperMap
-
-
Method Details
-
getDelegate
-
clear
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
entrySet
-
get
-
isEmpty
-
keySet
-
put
-
putAll
-
remove
-
size
-
values
-
getOrDefault
-
forEach
-
replace
-
replace
-
replaceAll
- Specified by:
replaceAllin interfaceMap<K,V>
-
putIfAbsent
-
remove
-
computeIfAbsent
-
computeIfPresent
- Specified by:
computeIfPresentin interfaceMap<K,V>
-
compute
-
merge
-
equals
-
hashCode
-
toString
-