public abstract static class WrapperCollections.AbstractWrapperMap<K,V> extends Object implements Map<K,V>, Serializable
Modifier and Type | Field | Description |
---|---|---|
protected Map<K,V> |
m_mapDelegate |
The Map to which this wrapper delegates.
|
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractWrapperMap() |
Default constructor
|
protected |
AbstractWrapperMap(Map<K,V> map) |
Create an AbstractWrapperMap which delegates to the specified Map.
|
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 oKey) |
|
boolean |
containsValue(Object oValue) |
|
Set<Map.Entry<K,V>> |
entrySet() |
|
boolean |
equals(Object oOther) |
|
void |
forEach(BiConsumer<? super K,? super V> action) |
|
V |
get(Object oKey) |
|
protected Map<K,V> |
getDelegate() |
Return the Map to which all operations should be delegated to.
|
V |
getOrDefault(Object key,
V defaultValue) |
|
int |
hashCode() |
|
boolean |
isEmpty() |
|
Set<K> |
keySet() |
|
V |
merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction) |
|
V |
put(K oKey,
V oValue) |
|
void |
putAll(Map<? extends K,? extends V> map) |
|
V |
putIfAbsent(K key,
V value) |
|
V |
remove(Object oKey) |
|
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() |
|
String |
toString() |
|
Collection<V> |
values() |
protected Map<K,V> getDelegate()
public boolean containsKey(Object oKey)
containsKey
in interface Map<K,V>
public boolean containsValue(Object oValue)
containsValue
in interface Map<K,V>
public V getOrDefault(Object key, V defaultValue)
getOrDefault
in interface Map<K,V>
public void forEach(BiConsumer<? super K,? super V> action)
public void replaceAll(BiFunction<? super K,? super V,? extends V> function)
replaceAll
in interface Map<K,V>
public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
computeIfAbsent
in interface Map<K,V>
public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
computeIfPresent
in interface Map<K,V>
public boolean equals(Object oOther)
public int hashCode()