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

Method equals

output/java_guava/1.4.18/Longs.java:694–713  ·  view source on GitHub ↗
(@Nullable Object object)

Source from the content-addressed store, hash-verified

692 }
693
694 @Override
695 public boolean equals(@Nullable Object object) {
696 if (object == this) {
697 return true;
698 }
699 if (object instanceof LongArrayAsList) {
700 LongArrayAsList that = (LongArrayAsList) object;
701 int size = size();
702 if (that.size() != size) {
703 return false;
704 }
705 for (int i = 0; i < size; i++) {
706 if (array[start + i] != that.array[that.start + i]) {
707 return false;
708 }
709 }
710 return true;
711 }
712 return super.equals(object);
713 }
714
715 @Override
716 public int hashCode() {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected