@Test public void testEquals() { assertEquals(blob(1, 2, 3), blob(1, 2, 3)); assertNotEquals(blob(1, 2, 3), blob(1, 2)); assertNotEquals(blob(1, 2, 3), new Object()); }
@Override public boolean equals(@Nullable Object other) { return other instanceof Blob && bytes.equals(((Blob) other).bytes); }
Blob implements Comparable<Blob> { @Override public boolean equals(@Nullable Object other) { return other instanceof Blob && bytes.equals(((Blob) other).bytes); } }
Blob implements Comparable<Blob> { @Override public boolean equals(@Nullable Object other) { return other instanceof Blob && bytes.equals(((Blob) other).bytes); } private  Blob(ByteString bytes); }
Blob implements Comparable<Blob> { @Override public boolean equals(@Nullable Object other) { return other instanceof Blob && bytes.equals(((Blob) other).bytes); } private  Blob(ByteString bytes); @NonNull static Blob fromBytes(@NonNull byte[] bytes); @NonNull @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) static Blob fromByteString(@NonNull ByteString bytes); @NonNull byte[] toBytes(); @Override @NonNull String toString(); @NonNull @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) ByteString toByteString(); @Override boolean equals(@Nullable Object other); @Override int hashCode(); @Override int compareTo(@NonNull Blob other); }
Blob implements Comparable<Blob> { @Override public boolean equals(@Nullable Object other) { return other instanceof Blob && bytes.equals(((Blob) other).bytes); } private  Blob(ByteString bytes); @NonNull static Blob fromBytes(@NonNull byte[] bytes); @NonNull @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) static Blob fromByteString(@NonNull ByteString bytes); @NonNull byte[] toBytes(); @Override @NonNull String toString(); @NonNull @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) ByteString toByteString(); @Override boolean equals(@Nullable Object other); @Override int hashCode(); @Override int compareTo(@NonNull Blob other);  }