Added an accessor for the underlying map.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2327 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
andrzej
2008-06-17 00:44:14 +00:00
parent 97ae34fcdd
commit 7325f92676
@@ -45,6 +45,14 @@ public class SoftCache<K,V>
_map = new HashMap<K,SoftReference<V>>(); _map = new HashMap<K,SoftReference<V>>();
} }
/**
* Returns a reference to the underlying map.
*/
public Map<K,SoftReference<V>> getMap ()
{
return _map;
}
/** /**
* Returns true if the supplied key exists in this map and is mapped to an active value. * Returns true if the supplied key exists in this map and is mapped to an active value.
*/ */