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

Method equals

output/java_guava/1.4.18/Bytes.java:345–364  ·  view source on GitHub ↗
(@Nullable Object object)

Source from the content-addressed store, hash-verified

343 }
344
345 @Override
346 public boolean equals(@Nullable Object object) {
347 if (object == this) {
348 return true;
349 }
350 if (object instanceof ByteArrayAsList) {
351 ByteArrayAsList that = (ByteArrayAsList) object;
352 int size = size();
353 if (that.size() != size) {
354 return false;
355 }
356 for (int i = 0; i < size; i++) {
357 if (array[start + i] != that.array[that.start + i]) {
358 return false;
359 }
360 }
361 return true;
362 }
363 return super.equals(object);
364 }
365
366 @Override
367 public int hashCode() {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected