Пример #1
0
 @Override
 public final boolean equals(@Nullable final Object object) {
   if (object instanceof HashCode) {
     final HashCode that = (HashCode) object;
     return this.bits() == that.bits() && this.equalsSameBits(that);
   }
   return false;
 }
Пример #2
0
 @Override
 boolean equalsSameBits(final HashCode that) {
   return MessageDigest.isEqual(this.bytes, that.getBytesInternal());
 }
Пример #3
0
 @Override
 boolean equalsSameBits(final HashCode that) {
   return this.hash == that.asLong();
 }