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

Method initializeSet

classpath/java/util/TreeMap.java:26–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }
25
26 private void initializeSet() {
27 final Comparator<K> comparator = this.comparator != null ?
28 this.comparator : new Comparator<K>() {
29 public int compare(K a, K b) {
30 return ((Comparable) a).compareTo(b);
31 }
32 };
33 set = new TreeSet(new Comparator<MyEntry<K,V>>() {
34 public int compare(MyEntry<K,V> a, MyEntry<K,V> b) {
35 return comparator.compare(a.key, b.key);
36 }
37 });
38 }
39
40 public TreeMap() {
41 this(null);

Callers 2

TreeMapMethod · 0.95
readObjectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected