MCPcopy Index your code
hub / github.com/antlr/codebuff / compare

Method compare

output/java_guava/1.4.18/Ints.java:459–469  ·  view source on GitHub ↗
(int[] left, int[] right)

Source from the content-addressed store, hash-verified

457 INSTANCE;
458
459 @Override
460 public int compare(int[] left, int[] right) {
461 int minLength = Math.min(left.length, right.length);
462 for (int i = 0; i < minLength; i++) {
463 int result = Ints.compare(left[i], right[i]);
464 if (result != 0) {
465 return result;
466 }
467 }
468 return left.length - right.length;
469 }
470
471 @Override
472 public String toString() {

Callers

nothing calls this directly

Calls 2

compareMethod · 0.95
minMethod · 0.45

Tested by

no test coverage detected