(final Comparator<T> comparator)
| 17 | private PersistentSet<Cell<T>> set; |
| 18 | |
| 19 | public TreeSet(final Comparator<T> comparator) { |
| 20 | set = new PersistentSet(new Comparator<Cell<T>>() { |
| 21 | public int compare(Cell<T> a, Cell<T> b) { |
| 22 | return comparator.compare(a.value, b.value); |
| 23 | } |
| 24 | }); |
| 25 | } |
| 26 | |
| 27 | public TreeSet() { |
| 28 | this(new Comparator<T>() { |