com.mongodb.util
Class WeakValueMap<K,V>

java.lang.Object
  extended by com.mongodb.util.WeakValueMap<K,V>

public class WeakValueMap<K,V>
extends Object


Constructor Summary
WeakValueMap()
          Initializes a new values map
 
Method Summary
 V get(Object key)
          Gets an object with a given key from this map
 V put(K key, V v)
          Adds an object to this map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakValueMap

public WeakValueMap()
Initializes a new values map

Method Detail

get

public V get(Object key)
Gets an object with a given key from this map

Parameters:
key - name of the object to find
Returns:
the object, if found

put

public V put(K key,
             V v)
Adds an object to this map

Parameters:
key - key of object to add
v - value of object to add
Returns:
value of added object