public abstract class ConcurrentMapperHashMap<K,IK,V,IV> extends AbstractMap<K,V> implements ConcurrentMap<K,V>, Serializable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected Set<Map.Entry<K,V>> |
entrySet |
protected ConcurrentMap<IK,IV> |
innerConcurrentMap |
protected Set<K> |
keySet |
protected Collection<V> |
values |
Modifier | Constructor and Description |
---|---|
protected |
ConcurrentMapperHashMap(ConcurrentMap<IK,IV> innerConcurrentMap) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
protected abstract IK |
mapKey(K key) |
protected abstract IK |
mapKeyForQuery(K key) |
protected abstract IV |
mapValue(K key,
V value) |
protected abstract IV |
mapValueForQuery(V value) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
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) |
int |
size() |
protected abstract K |
unmapKey(IK key) |
protected abstract K |
unmapKeyForQuery(IK key) |
protected abstract V |
unmapValue(IV value) |
protected abstract V |
unmapValueForQuery(IV value) |
Collection<V> |
values() |
clone, equals, hashCode, toString
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
protected final ConcurrentMap<IK,IV> innerConcurrentMap
protected transient Collection<V> values
protected ConcurrentMapperHashMap(ConcurrentMap<IK,IV> innerConcurrentMap)
public void clear()
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
containsKey
in class AbstractMap<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
containsValue
in class AbstractMap<K,V>
public boolean isEmpty()
public V putIfAbsent(K key, V value)
putIfAbsent
in interface ConcurrentMap<K,V>
putIfAbsent
in interface Map<K,V>
public int size()
public Collection<V> values()