/** * Returns {@code true} if {@code object} is a {@link HashCode} instance with the identical byte * representation to this hash code. * * <p><b>Security note:</b> this method uses a constant-time (not short-circuiting) implementation * to protect against <a href="http://en.wikipedia.org/wiki/Timing_attack">timing attacks</a>. */ @Override public final boolean equals(@Nullable Object object) { if (object instanceof HashCode) { HashCode that = (HashCode) object; return bits() == that.bits() && equalsSameBits(that); } return false; }
/** * Returns {@code true} if {@code object} is a {@link HashCode} instance with the identical byte * representation to this hash code. * * <p><b>Security note:</b> this method uses a constant-time (not short-circuiting) implementation * to protect against <a href="http://en.wikipedia.org/wiki/Timing_attack">timing attacks</a>. */ @Override public final boolean equals(@NullableDecl Object object) { if (object instanceof HashCode) { HashCode that = (HashCode) object; return bits() == that.bits() && equalsSameBits(that); } return false; }
/** * Returns {@code true} if {@code object} is a {@link HashCode} instance with the identical byte * representation to this hash code. * * <p><b>Security note:</b> this method uses a constant-time (not short-circuiting) implementation * to protect against <a href="http://en.wikipedia.org/wiki/Timing_attack">timing attacks</a>. */ @Override public final boolean equals(@NullableDecl Object object) { if (object instanceof HashCode) { HashCode that = (HashCode) object; return bits() == that.bits() && equalsSameBits(that); } return false; }
/** * Returns {@code true} if {@code object} is a {@link HashCode} instance with the identical byte * representation to this hash code. * * <p><b>Security note:</b> this method uses a constant-time (not short-circuiting) implementation * to protect against <a href="http://en.wikipedia.org/wiki/Timing_attack">timing attacks</a>. */ @Override public final boolean equals(@NullableDecl Object object) { if (object instanceof HashCode) { HashCode that = (HashCode) object; return bits() == that.bits() && equalsSameBits(that); } return false; }
/** * Returns {@code true} if {@code object} is a {@link HashCode} instance with the identical byte * representation to this hash code. * * <p><b>Security note:</b> this method uses a constant-time (not short-circuiting) implementation * to protect against <a href="http://en.wikipedia.org/wiki/Timing_attack">timing attacks</a>. */ @Override public final boolean equals(@Nullable Object object) { if (object instanceof HashCode) { HashCode that = (HashCode) object; return bits() == that.bits() && equalsSameBits(that); } return false; }