org.jboss.util.collection
Class SoftValueTreeMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.jboss.util.collection.ReferenceValueMap<K,V>
org.jboss.util.collection.ReferenceValueTreeMap<K,V>
org.jboss.util.collection.SoftValueTreeMap<K,V>
- All Implemented Interfaces:
- Map<K,V>
public class SoftValueTreeMap<K,V>
- extends ReferenceValueTreeMap<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> |
SoftValueTreeMap
public SoftValueTreeMap()
SoftValueTreeMap
public SoftValueTreeMap(Comparator<K> comparator)
SoftValueTreeMap
public SoftValueTreeMap(SortedMap<K,ValueRef<K,V>> sorted)
create
protected ValueRef<K,V> create(K key,
V value,
ReferenceQueue<V> q)
- Description copied from class:
ReferenceValueMap
- Create new value ref instance.
- Specified by:
create
in class ReferenceValueMap<K,V>
- Parameters:
key
- the keyvalue
- the valueq
- the ref queue
- Returns:
- new value ref instance
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.