(coll) java.util: Add WeakValueHashMap class

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P5
    • None
    • Affects Version/s: 1.2.0, 5.0
    • Component/s: 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.

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

              Created:
              Updated:
              Imported:
              Indexed: