org.jboss.util.collection
Class ReferenceValueHashMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.jboss.util.collection.ReferenceValueMap<K,V>
org.jboss.util.collection.ReferenceValueHashMap<K,V>
- Type Parameters:
K
- the key typeV
- the value type
- All Implemented Interfaces:
- Map<K,V>
- Direct Known Subclasses:
- SoftValueHashMap, WeakValueHashMap
public abstract class ReferenceValueHashMap<K,V>
- extends ReferenceValueMap<K,V>
This Map will remove entries when the value in the map has been
cleaned from garbage collection
- Author:
- Bill Burke, Adrian Brock, Ales Justin
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Method Summary |
protected Map<K,ValueRef<K,V>> |
createMap()
Create map. |
protected Map<K,ValueRef<K,V>> |
createMap(Comparator<K> kComparator)
Create map. |
protected Map<K,ValueRef<K,V>> |
createMap(int initialCapacity)
Create map. |
protected Map<K,ValueRef<K,V>> |
createMap(int initialCapacity,
float loadFactor)
Create map. |
protected Map<K,ValueRef<K,V>> |
createMap(SortedMap<K,ValueRef<K,V>> kValueRefSortedMap)
Create map. |
ReferenceValueHashMap
protected ReferenceValueHashMap()
ReferenceValueHashMap
protected ReferenceValueHashMap(int initialCapacity)
ReferenceValueHashMap
protected ReferenceValueHashMap(int initialCapacity,
float loadFactor)
ReferenceValueHashMap
protected ReferenceValueHashMap(Map<K,V> t)
createMap
protected Map<K,ValueRef<K,V>> createMap(int initialCapacity,
float loadFactor)
- Description copied from class:
ReferenceValueMap
- Create map.
- Specified by:
createMap
in class ReferenceValueMap<K,V>
- Parameters:
initialCapacity
- the initial capacityloadFactor
- the load factor
- Returns:
- new map instance
createMap
protected Map<K,ValueRef<K,V>> createMap(int initialCapacity)
- Description copied from class:
ReferenceValueMap
- Create map.
- Specified by:
createMap
in class ReferenceValueMap<K,V>
- Parameters:
initialCapacity
- the initial capacity
- Returns:
- new map instance
createMap
protected Map<K,ValueRef<K,V>> createMap()
- Description copied from class:
ReferenceValueMap
- Create map.
- Specified by:
createMap
in class ReferenceValueMap<K,V>
- Returns:
- new map instance
createMap
protected Map<K,ValueRef<K,V>> createMap(Comparator<K> kComparator)
- Description copied from class:
ReferenceValueMap
- Create map.
- Specified by:
createMap
in class ReferenceValueMap<K,V>
- Parameters:
kComparator
- the comparator
- Returns:
- new map instance
createMap
protected Map<K,ValueRef<K,V>> createMap(SortedMap<K,ValueRef<K,V>> kValueRefSortedMap)
- Description copied from class:
ReferenceValueMap
- Create map.
- Specified by:
createMap
in class ReferenceValueMap<K,V>
- Parameters:
kValueRefSortedMap
- the sorted map
- Returns:
- new map instance
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.