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

Method equals

output/java_guava/1.4.19/HashCode.java:390–397  ·  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

388 */
389
390 @Override
391 public final boolean equals(@Nullable Object object) {
392 if (object instanceof HashCode) {
393 HashCode that = (HashCode) object;
394 return bits() == that.bits() && equalsSameBits(that);
395 }
396 return false;
397 }
398
399 /**
400 * 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