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

Method equals

output/java_guava/1.4.16/Chars.java:555–574  ·  view source on GitHub ↗
(@Nullable Object object)

Source from the content-addressed store, hash-verified

553 }
554
555 @Override
556 public boolean equals(@Nullable Object object) {
557 if (object == this) {
558 return true;
559 }
560 if (object instanceof CharArrayAsList) {
561 CharArrayAsList that = (CharArrayAsList) object;
562 int size = size();
563 if (that.size() != size) {
564 return false;
565 }
566 for (int i = 0; i < size; i++) {
567 if (array[start + i] != that.array[that.start + i]) {
568 return false;
569 }
570 }
571 return true;
572 }
573 return super.equals(object);
574 }
575
576 @Override
577 public int hashCode() {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected