MCPcopy Index your code
hub / github.com/apache/groovy / compareTo

Method compareTo

src/main/java/groovy/lang/ObjectRange.java:294–296  ·  view source on GitHub ↗

Compares two values using Groovy's number-aware comparison. @param first the first value @param second the second value @return the comparison result

(Comparable first, Comparable second)

Source from the content-addressed store, hash-verified

292 * @return the comparison result
293 */
294 protected int compareTo(Comparable first, Comparable second) {
295 return DefaultGroovyMethods.numberAwareCompareTo(first, second);
296 }
297
298 /**
299 * protection against calls from Groovy

Callers 4

containsWithinBoundsMethod · 0.95
stepMethod · 0.95
StepIteratorMethod · 0.45
peekMethod · 0.45

Calls 1

numberAwareCompareToMethod · 0.95

Tested by

no test coverage detected