-
Enhancement
-
Resolution: Unresolved
-
P5
-
None
-
1.2.0, 5.0
-
None
-
generic, x86
-
generic, windows_xp
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.
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.
- duplicates
-
JDK-6423502 (coll) Add value-weak version of WeakHashMap
-
- Closed
-
- relates to
-
JDK-4500542 (coll) WeakIdentityHashMap wanted
-
- Open
-