|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grinder.util.WeakValueHashMap<K,V>
K - Key type.V - Value type.public final class WeakValueHashMap<K,V>
A map that maintains weak references to its values.
| Constructor Summary | |
|---|---|
WeakValueHashMap()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear all entries out of the map. |
V |
get(K key)
Look up a value by key. |
void |
put(K key,
V value)
Add a value. |
V |
remove(K key)
Remove an entry from the map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeakValueHashMap()
| Method Detail |
|---|
public void clear()
public V get(K key)
key - The key.
null if none found.
public void put(K key,
V value)
key - The key.value - The value.public V remove(K key)
key - The key.
null if none found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||