JDK-4175502 : (coll) java.util: Add WeakValueHashMap class
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Affected Version: 1.2.0,5.0
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 1998-09-22
  • Updated: 2012-10-08
Related Reports
Duplicate :  
Relates :  
Description
From: Constantine Plotnikov <###@###.###>
To: jdkea <###@###.###>
Subject: WeakValueHashMap 

I suggest to add class WeakValueHashMap in which key/value pair is 
removed if value is no more referrenced. In my application (prolog 
interpreter) I have many cases when it is very useful but I had not 
any cases when WeakHashMap were useful. Such class can be used for 
example for mapping string to loaded resources.