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
+9 -1
View File
@@ -3,7 +3,7 @@
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001-2007 Michael Bayne
//
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or
@@ -45,6 +45,14 @@ public class SoftCache<K,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.
*/