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

Method equals

output/java_guava/1.4.18/Ints.java:609–628  ·  view source on GitHub ↗
(@Nullable Object object)

Source from the content-addressed store, hash-verified

607 }
608
609 @Override
610 public boolean equals(@Nullable Object object) {
611 if (object == this) {
612 return true;
613 }
614 if (object instanceof IntArrayAsList) {
615 IntArrayAsList that = (IntArrayAsList) object;
616 int size = size();
617 if (that.size() != size) {
618 return false;
619 }
620 for (int i = 0; i < size; i++) {
621 if (array[start + i] != that.array[that.start + i]) {
622 return false;
623 }
624 }
625 return true;
626 }
627 return super.equals(object);
628 }
629
630 @Override
631 public int hashCode() {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected