MCPcopy Create free account
hub / github.com/antlr/codebuff / compare

Method compare

output/java_guava/1.4.19/Longs.java:543–553  ·  view source on GitHub ↗
(long[] left, long[] right)

Source from the content-addressed store, hash-verified

541 INSTANCE;
542
543 @Override
544 public int compare(long[] left, long[] right) {
545 int minLength = Math.min(left.length, right.length);
546 for (int i = 0; i < minLength; i++) {
547 int result = Longs.compare(left[i], right[i]);
548 if (result != 0) {
549 return result;
550 }
551 }
552 return left.length - right.length;
553 }
554
555 @Override
556 public String toString() {

Callers

nothing calls this directly

Calls 2

compareMethod · 0.95
minMethod · 0.45

Tested by

no test coverage detected