You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Noel Grandin (JIRA)" <ji...@apache.org> on 2009/08/11 15:34:14 UTC

[jira] Resolved: (PIVOT-224) Support comparators in MapAdapter and SetAdapter

     [ https://issues.apache.org/jira/browse/PIVOT-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noel Grandin resolved PIVOT-224.
--------------------------------

    Resolution: Fixed

Patch checked in with required changes.

> Support comparators in MapAdapter and SetAdapter
> ------------------------------------------------
>
>                 Key: PIVOT-224
>                 URL: https://issues.apache.org/jira/browse/PIVOT-224
>             Project: Pivot
>          Issue Type: Improvement
>          Components: core-collections
>    Affects Versions: 1.3
>            Reporter: Greg Brown
>            Assignee: Noel Grandin
>            Priority: Trivial
>             Fix For: 1.3
>
>         Attachments: collections.patch
>
>
> 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;
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.