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

Method compare

classpath/java/util/TreeMap.java:29–31  ·  view source on GitHub ↗
(K a, K b)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

compareToMethod · 0.65
compareMethod · 0.65

Tested by

no test coverage detected