Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-224

Support comparators in MapAdapter and SetAdapter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.3
    • 1.3
    • core-collections
    • None

    Description

      Use TreeMap/TreeSet as described below:

      sample setComparator implementation:

      private final TreeMap map;

      public void setComparator(Comparator comp) {
      TreeMap newMap = new TreeMap(comp);
      newMap.addAll(this.map);
      this.map = newMap;
      }

      Attachments

        1. collections.patch
          5 kB
          Noel Grandin

        Activity

          People

            grandinj Noel Grandin
            gbrown Gregory K. Brown
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: