org.jboss.util.collection
Class ReferenceValueTreeMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.jboss.util.collection.ReferenceValueMap<K,V>
org.jboss.util.collection.ReferenceValueTreeMap<K,V>
- Type Parameters:
K
- the key typeV
- the value type
- All Implemented Interfaces:
- Map<K,V>
- Direct Known Subclasses:
- SoftValueTreeMap, WeakValueTreeMap
public abstract class ReferenceValueTreeMap<K,V>
- extends ReferenceValueMap<K,V>
This Map will remove entries when the value in the map has been
cleaned from garbage collection
- Author:
- 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> comparator)
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>> map)
Create map. |
ReferenceValueTreeMap
protected ReferenceValueTreeMap()
ReferenceValueTreeMap
protected ReferenceValueTreeMap(Comparator<K> comparator)
ReferenceValueTreeMap
protected ReferenceValueTreeMap(SortedMap<K,ValueRef<K,V>> sorted)
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> comparator)
- Description copied from class:
ReferenceValueMap
- Create map.
- Specified by:
createMap
in class ReferenceValueMap<K,V>
- Parameters:
comparator
- the comparator
- Returns:
- new map instance
createMap
protected Map<K,ValueRef<K,V>> createMap(SortedMap<K,ValueRef<K,V>> map)
- Description copied from class:
ReferenceValueMap
- Create map.
- Specified by:
createMap
in class ReferenceValueMap<K,V>
- Parameters:
map
- the sorted map
- 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(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
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.