I know there is a WeakHashMap in java.util, but since it uses WeakReferences for everything, which is only referenced by this Ma
WeakHashMap
java.util
WeakReference
Ma
Apache Shiro comes with a SoftHashMap designed for caching. Its based on the article posted by jb above and licensed under Apache v2. You can find the documentation here and the source code here.