Duplicate :
|
|
Relates :
|
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.