MCPcopy Create free account
hub / github.com/davidgiven/luje / compare

Method compare

lib/java/util/Comparator.java:55–55  ·  view source on GitHub ↗

Compares the two specified objects to determine their relative ordering. The ordering implied by the return value of this method for all possible pairs of (object1, object2) should form an equivalence relation . This means that compare(a,a) returns zero for all {@code

(T object1, T object2)

Source from the content-addressed store, hash-verified

53 * if objects are not of the correct type.
54 */
55 public int compare(T object1, T object2);
56
57 /**
58 * Compares this {@code Comparator} with the specified {@code Object} and indicates whether they

Callers 15

checkRangeMethod · 0.65
isInRangeMethod · 0.65
checkUpperBoundMethod · 0.65
checkLowerBoundMethod · 0.65
subMapMethod · 0.65
cmpMethod · 0.65
headMapMethod · 0.65
subMapMethod · 0.65
tailMapMethod · 0.65
compareMethod · 0.65
binarySearchMethod · 0.65
maxMethod · 0.65

Implementers 3

Floatlib/java/lang/Float.java
Doublelib/java/lang/Double.java
ReverseComparatorWithComparatorlib/java/util/Collections.java

Calls

no outgoing calls

Tested by

no test coverage detected