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

Method equals

output/java_guava/1.4.17/ImmutableSet.java:341–351  ·  view source on GitHub ↗
(@Nullable Object object)

Source from the content-addressed store, hash-verified

339 }
340
341 @Override
342 public boolean equals(@Nullable Object object) {
343 if (object == this) {
344 return true;
345 } else if (object instanceof ImmutableSet && isHashCodeFast()
346 && ((ImmutableSet<?>) object).isHashCodeFast()
347 && hashCode() != object.hashCode()) {
348 return false;
349 }
350 return Sets.equalsImpl(this, object);
351 }
352
353 @Override
354 public int hashCode() {

Callers

nothing calls this directly

Calls 4

isHashCodeFastMethod · 0.95
hashCodeMethod · 0.95
equalsImplMethod · 0.95
hashCodeMethod · 0.65

Tested by

no test coverage detected