(coll) Map that is sorted by values instead of sorted by keys

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 1.4.1
    • Component/s: core-libs



      Name: rmT116609 Date: 10/23/2003


      A DESCRIPTION OF THE REQUEST :
      I want to be able to have an ordered map, where the map is ordered using a specific Comparator on the values.

      *** This different from Map interface:
      1. It can hold a Comparator.
      2. The iterators on the KeySet, ValueSet and EntrySet will return entries in the correct order of the values (not keys).

      *** This is different from SortedMap interface:
      1. The Comparator works on values, not on keys.
      2. The get(), put() and contains() method still work using equals and hashCode.


      While this new suggested type has a Comparator and sorting concept, it still looks more like a Map, not SortedMap.






      JUSTIFICATION :
      In order to hold a Map with other than random order.
      In this respect, SortedMap is something else.

      Also, refer to BUG ID: 4229181.

      (Incident Review ID: 200727)
      ======================================================================

            Assignee:
            Stuart Marks
            Reporter:
            Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: