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

Method equals

output/java_guava/1.4.17/Floats.java:539–558  ·  view source on GitHub ↗
(@Nullable Object object)

Source from the content-addressed store, hash-verified

537 }
538
539 @Override
540 public boolean equals(@Nullable Object object) {
541 if (object == this) {
542 return true;
543 }
544 if (object instanceof FloatArrayAsList) {
545 FloatArrayAsList that = (FloatArrayAsList) object;
546 int size = size();
547 if (that.size() != size) {
548 return false;
549 }
550 for (int i = 0; i < size; i++) {
551 if (array[start + i] != that.array[that.start + i]) {
552 return false;
553 }
554 }
555 return true;
556 }
557 return super.equals(object);
558 }
559
560 @Override
561 public int hashCode() {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected