Liferay 7.0-ce-b4

com.liferay.portal.kernel.concurrent
Class ConcurrentReferenceValueHashMap<K,V>

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

public class ConcurrentReferenceValueHashMap<K,V>
extends ConcurrentMapperHashMap<K,K,V,Reference<V>>

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
 
Fields inherited from class com.liferay.portal.kernel.concurrent.ConcurrentMapperHashMap
entrySet, innerConcurrentMap, keySet, values
 
Constructor Summary
ConcurrentReferenceValueHashMap(ConcurrentMap<K,Reference<V>> innerConcurrentMap, FinalizeManager.ReferenceFactory referenceFactory)
           
ConcurrentReferenceValueHashMap(FinalizeManager.ReferenceFactory referenceFactory)
           
ConcurrentReferenceValueHashMap(int initialCapacity, FinalizeManager.ReferenceFactory referenceFactory)
           
ConcurrentReferenceValueHashMap(int initialCapacity, float loadFactor, int concurrencyLevel, FinalizeManager.ReferenceFactory referenceFactory)
           
ConcurrentReferenceValueHashMap(Map<? extends K,? extends V> map, FinalizeManager.ReferenceFactory referenceFactory)
           
 
Method Summary
protected  K mapKey(K key)
           
protected  K mapKeyForQuery(K key)
           
protected  Reference<V> mapValue(K key, V value)
           
protected  Reference<V> mapValueForQuery(V value)
           
protected  K unmapKey(K key)
           
protected  K unmapKeyForQuery(K key)
           
protected  V unmapValue(Reference<V> reference)
           
protected  V unmapValueForQuery(Reference<V> reference)
           
 
Methods inherited from class com.liferay.portal.kernel.concurrent.ConcurrentMapperHashMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, 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
 

Constructor Detail

ConcurrentReferenceValueHashMap

public ConcurrentReferenceValueHashMap(ConcurrentMap<K,Reference<V>> innerConcurrentMap,
                                       FinalizeManager.ReferenceFactory referenceFactory)

ConcurrentReferenceValueHashMap

public ConcurrentReferenceValueHashMap(int initialCapacity,
                                       float loadFactor,
                                       int concurrencyLevel,
                                       FinalizeManager.ReferenceFactory referenceFactory)

ConcurrentReferenceValueHashMap

public ConcurrentReferenceValueHashMap(int initialCapacity,
                                       FinalizeManager.ReferenceFactory referenceFactory)

ConcurrentReferenceValueHashMap

public ConcurrentReferenceValueHashMap(Map<? extends K,? extends V> map,
                                       FinalizeManager.ReferenceFactory referenceFactory)

ConcurrentReferenceValueHashMap

public ConcurrentReferenceValueHashMap(FinalizeManager.ReferenceFactory referenceFactory)
Method Detail

mapKey

protected K mapKey(K key)
Specified by:
mapKey in class ConcurrentMapperHashMap<K,K,V,Reference<V>>

mapKeyForQuery

protected K mapKeyForQuery(K key)
Specified by:
mapKeyForQuery in class ConcurrentMapperHashMap<K,K,V,Reference<V>>

mapValue

protected Reference<V> mapValue(K key,
                                V value)
Specified by:
mapValue in class ConcurrentMapperHashMap<K,K,V,Reference<V>>

mapValueForQuery

protected Reference<V> mapValueForQuery(V value)
Specified by:
mapValueForQuery in class ConcurrentMapperHashMap<K,K,V,Reference<V>>

unmapKey

protected K unmapKey(K key)
Specified by:
unmapKey in class ConcurrentMapperHashMap<K,K,V,Reference<V>>

unmapKeyForQuery

protected K unmapKeyForQuery(K key)
Specified by:
unmapKeyForQuery in class ConcurrentMapperHashMap<K,K,V,Reference<V>>

unmapValue

protected V unmapValue(Reference<V> reference)
Specified by:
unmapValue in class ConcurrentMapperHashMap<K,K,V,Reference<V>>

unmapValueForQuery

protected V unmapValueForQuery(Reference<V> reference)
Specified by:
unmapValueForQuery in class ConcurrentMapperHashMap<K,K,V,Reference<V>>

Liferay 7.0-ce-b4