MCPcopy Create free account
hub / github.com/ReadyTalk/avian / TreeSet

Method TreeSet

classpath/java/util/TreeSet.java:19–25  ·  view source on GitHub ↗
(final Comparator<T> comparator)

Source from the content-addressed store, hash-verified

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>() {

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected