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

44 lines
1.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.firestore;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
/* loaded from: classes2.dex */
public class SnapshotMetadata {
private final boolean hasPendingWrites;
private final boolean isFromCache;
/* JADX INFO: Access modifiers changed from: package-private */
public SnapshotMetadata(boolean z, boolean z2) {
this.hasPendingWrites = z;
this.isFromCache = z2;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof SnapshotMetadata)) {
return false;
}
SnapshotMetadata snapshotMetadata = (SnapshotMetadata) obj;
return this.hasPendingWrites == snapshotMetadata.hasPendingWrites && this.isFromCache == snapshotMetadata.isFromCache;
}
public String toString() {
StringBuilder sb = new StringBuilder("SnapshotMetadata{hasPendingWrites=");
sb.append(this.hasPendingWrites);
sb.append(", isFromCache=");
sb.append(this.isFromCache);
sb.append(UrlTreeKt.componentParamSuffixChar);
return sb.toString();
}
public boolean isFromCache() {
return this.isFromCache;
}
public int hashCode() {
return ((this.hasPendingWrites ? 1 : 0) * 31) + (this.isFromCache ? 1 : 0);
}
}