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

Support comparators in MapAdapter and SetAdapter

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: core-collections
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: