@Test public void testComparison() { new ComparatorTester() .addEqualityGroup(blob(), blob()) .addEqualityGroup(blob(0), blob(0)) .addEqualityGroup(blob(0, 1), blob(0, 1)) .addEqualityGroup(blob(0, 1, 0), blob(0, 1, 0)) .addEqualityGroup(blob(0, 1, 1), blob(0, 1, 1)) .addEqualityGroup(blob(0, 255), blob(0, 255)) .addEqualityGroup(blob(1), blob(1)) .addEqualityGroup(blob(1, 0), blob(1, 0)) .addEqualityGroup(blob(1, 255), blob(1, 255)) .addEqualityGroup(blob(255), blob(255)) .testCompare(); }
private Blob(ByteString bytes) { this.bytes = bytes; }
Blob implements Comparable<Blob> { private Blob(ByteString bytes) { this.bytes = bytes; } }
Blob implements Comparable<Blob> { private Blob(ByteString bytes) { this.bytes = bytes; } private  Blob(ByteString bytes); }
Blob implements Comparable<Blob> { private Blob(ByteString bytes) { this.bytes = 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> { private Blob(ByteString bytes) { this.bytes = 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);  }