what-the-bank/sources/com/google/firebase/firestore/Blob.java

44 lines
1.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.firestore;
import com.google.firebase.firestore.util.Preconditions;
import com.google.firebase.firestore.util.Util;
import o.QwV;
/* loaded from: classes2.dex */
public class Blob implements Comparable<Blob> {
private final QwV bytes;
private Blob(QwV qwV) {
this.bytes = qwV;
}
public static Blob fromByteString(QwV qwV) {
Preconditions.checkNotNull(qwV, "Provided ByteString must not be null.");
return new Blob(qwV);
}
public String toString() {
StringBuilder sb = new StringBuilder("Blob { bytes=");
sb.append(Util.toDebugString(this.bytes));
sb.append(" }");
return sb.toString();
}
public boolean equals(Object obj) {
return (obj instanceof Blob) && this.bytes.equals(((Blob) obj).bytes);
}
public int hashCode() {
return this.bytes.hashCode();
}
@Override // java.lang.Comparable
public int compareTo(Blob blob) {
return Util.compareByteStrings(this.bytes, blob.bytes);
}
public QwV toByteString() {
return this.bytes;
}
}