Liferay 7.0-ce-b4

com.liferay.portal.kernel.concurrent
Class ConcurrentMapperHashMap<K,IK,V,IV>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by com.liferay.portal.kernel.concurrent.ConcurrentMapperHashMap<K,IK,V,IV>
All Implemented Interfaces:
Serializable, ConcurrentMap<K,V>, Map<K,V>
Direct Known Subclasses:
ConcurrentIdentityHashMap, ConcurrentReferenceKeyHashMap, ConcurrentReferenceValueHashMap

public abstract class ConcurrentMapperHashMap<K,IK,V,IV>
extends AbstractMap<K,V>
implements ConcurrentMap<K,V>, Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  Set<Map.Entry<K,V>> entrySet
           
protected  ConcurrentMap<IK,IV> innerConcurrentMap
           
protected  Set<K> keySet
           
protected  Collection<V> values
           
 
Constructor Summary
protected ConcurrentMapperHashMap(ConcurrentMap<IK,IV> innerConcurrentMap)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

entrySet

protected transient Set<Map.Entry<K,V>> entrySet

innerConcurrentMap

protected final ConcurrentMap<IK,IV> innerConcurrentMap

keySet

protected transient Set<K> keySet

values

protected transient Collection<V> values
Constructor Detail

ConcurrentMapperHashMap

protected ConcurrentMapperHashMap(ConcurrentMap<IK,IV> innerConcurrentMap)
Method Detail

clear

public void clear()
Specified by:
clear in interface Map<K,V>
Overrides:
clear in class AbstractMap<K,V>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<K,V>
Overrides:
containsKey in class AbstractMap<K,V>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<K,V>
Overrides:
containsValue in class AbstractMap<K,V>

entrySet

public Set<Map.Entry<K,V>> entrySet()
Specified by:
entrySet in interface Map<K,V>
Specified by:
entrySet in class AbstractMap<K,V>

get

public V get(Object key)
Specified by:
get in interface Map<K,V>
Overrides:
get in class AbstractMap<K,V>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<K,V>
Overrides:
isEmpty in class AbstractMap<K,V>

keySet

public Set<K> keySet()
Specified by:
keySet in interface Map<K,V>
Overrides:
keySet in class AbstractMap<K,V>

put

public V put(K key,
             V value)
Specified by:
put in interface Map<K,V>
Overrides:
put in class AbstractMap<K,V>

putAll

public void putAll(Map<? extends K,? extends V> map)
Specified by:
putAll in interface Map<K,V>
Overrides:
putAll in class AbstractMap<K,V>

putIfAbsent

public V putIfAbsent(K key,
                     V value)
Specified by:
putIfAbsent in interface ConcurrentMap<K,V>

remove

public V remove(Object key)
Specified by:
remove in interface Map<K,V>
Overrides:
remove in class AbstractMap<K,V>

remove

public boolean remove(Object key,
                      Object value)
Specified by:
remove in interface ConcurrentMap<K,V>

replace

public V replace(K key,
                 V value)
Specified by:
replace in interface ConcurrentMap<K,V>

replace

public boolean replace(K key,
                       V oldValue,
                       V newValue)
Specified by:
replace in interface ConcurrentMap<K,V>

size

public int size()
Specified by:
size in interface Map<K,V>
Overrides:
size in class AbstractMap<K,V>

values

public Collection<V> values()
Specified by:
values in interface Map<K,V>
Overrides:
values in class AbstractMap<K,V>

mapKey

protected abstract IK mapKey(K key)

mapKeyForQuery

protected abstract IK mapKeyForQuery(K key)

mapValue

protected abstract IV mapValue(K key,
                               V value)

mapValueForQuery

protected abstract IV mapValueForQuery(V value)

unmapKey

protected abstract K unmapKey(IK key)

unmapKeyForQuery

protected abstract K unmapKeyForQuery(IK key)

unmapValue

protected abstract V unmapValue(IV value)

unmapValueForQuery

protected abstract V unmapValueForQuery(IV value)

Liferay 7.0-ce-b4