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

Method equals

output/java_guava/1.4.16/HashCode.java:388–395  ·  view source on GitHub ↗

Returns true if object is a HashCode instance with the identical byte representation to this hash code. Security note: this method uses a constant-time (not short-circuiting) implementation to protect against tim

(@Nullable Object object)

Source from the content-addressed store, hash-verified

386 */
387
388 @Override
389 public final boolean equals(@Nullable Object object) {
390 if (object instanceof HashCode) {
391 HashCode that = (HashCode) object;
392 return bits() == that.bits() && equalsSameBits(that);
393 }
394 return false;
395 }
396
397 /**
398 * Returns a "Java hash code" for this {@code HashCode} instance; this is well-defined (so, for

Callers

nothing calls this directly

Calls 2

bitsMethod · 0.95
equalsSameBitsMethod · 0.95

Tested by

no test coverage detected