Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
1.3
-
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;
}