MCPcopy Create free account
hub / github.com/GateNLP/gate-core / compare

Method compare

src/main/java/gate/util/RBTreeMap.java:1068–1072  ·  view source on GitHub ↗

Compares two keys using the correct comparison method for this RBTreeMap.

(Object k1, Object k2)

Source from the content-addressed store, hash-verified

1066 * Compares two keys using the correct comparison method for this RBTreeMap.
1067 */
1068 @SuppressWarnings({"unchecked", "rawtypes"})
1069 private int compare(Object k1, Object k2) {
1070 return (comparator==null ? ((Comparable)k1).compareTo(k2)
1071 : comparator.compare((K)k1, (K)k2));
1072 }
1073
1074 /**
1075 * Test two values for equality. Differs from o1.equals(o2) only in

Callers 5

getClosestMatchMethod · 0.95
getEntryMethod · 0.95
getCeilEntryMethod · 0.95
getPrecedingEntryMethod · 0.95
putMethod · 0.95

Calls 2

compareToMethod · 0.65
compareMethod · 0.65

Tested by

no test coverage detected