Package com.tangosol.util
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.
- 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
The Map to which this wrapper delegates.
-
-
Constructor Details
-
AbstractWrapperMap
protected AbstractWrapperMap()Default constructor -
AbstractWrapperMap
Create an AbstractWrapperMap which delegates to the specified Map.- Parameters:
map- the Map to delegate all calls to
-
-
Method Details
-
getDelegate
Return the Map to which all operations should be delegated to.- Returns:
- the wrapped Map
-
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<K,V>
-
forEach
-
replace
-
replace
-
replaceAll
- Specified by:
replaceAllin interfaceMap<K,V>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<K,V>
-
remove
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<K,V>
-
computeIfPresent
- Specified by:
computeIfPresentin interfaceMap<K,V>
-
compute
-
merge
-
equals
-
hashCode
public int hashCode() -
toString
-