Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4175502

(coll) java.util: Add WeakValueHashMap class

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • 1.2.0, 5.0
    • core-libs
    • None

      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.

            mr Mark Reinhold
            mr Mark Reinhold
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: