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

131 lines
5.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.firestore.local;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import com.google.firebase.firestore.core.Target;
import com.google.firebase.firestore.model.SnapshotVersion;
import com.google.firebase.firestore.util.Preconditions;
import o.QwV;
/* loaded from: classes2.dex */
public final class TargetData {
private final SnapshotVersion lastLimboFreeSnapshotVersion;
private final QueryPurpose purpose;
private final QwV resumeToken;
private final long sequenceNumber;
private final SnapshotVersion snapshotVersion;
private final Target target;
private final int targetId;
/* JADX INFO: Access modifiers changed from: package-private */
public TargetData(Target target, int i, long j, QueryPurpose queryPurpose, SnapshotVersion snapshotVersion, SnapshotVersion snapshotVersion2, QwV qwV) {
this.target = (Target) Preconditions.checkNotNull(target);
this.targetId = i;
this.sequenceNumber = j;
this.lastLimboFreeSnapshotVersion = snapshotVersion2;
this.purpose = queryPurpose;
this.snapshotVersion = (SnapshotVersion) Preconditions.checkNotNull(snapshotVersion);
this.resumeToken = (QwV) Preconditions.checkNotNull(qwV);
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public TargetData(com.google.firebase.firestore.core.Target r10, int r11, long r12, com.google.firebase.firestore.local.QueryPurpose r14) {
/*
r9 = this;
com.google.firebase.firestore.model.SnapshotVersion r7 = com.google.firebase.firestore.model.SnapshotVersion.NONE
o.QwV r8 = com.google.firebase.firestore.remote.WatchStream.EMPTY_RESUME_TOKEN
r0 = r9
r1 = r10
r2 = r11
r3 = r12
r5 = r14
r6 = r7
r0.<init>(r1, r2, r3, r5, r6, r7, r8)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.firestore.local.TargetData.<init>(com.google.firebase.firestore.core.Target, int, long, com.google.firebase.firestore.local.QueryPurpose):void");
}
public final TargetData withSequenceNumber(long j) {
return new TargetData(this.target, this.targetId, j, this.purpose, this.snapshotVersion, this.lastLimboFreeSnapshotVersion, this.resumeToken);
}
public final TargetData withResumeToken(QwV qwV, SnapshotVersion snapshotVersion) {
return new TargetData(this.target, this.targetId, this.sequenceNumber, this.purpose, snapshotVersion, this.lastLimboFreeSnapshotVersion, qwV);
}
public final TargetData withLastLimboFreeSnapshotVersion(SnapshotVersion snapshotVersion) {
return new TargetData(this.target, this.targetId, this.sequenceNumber, this.purpose, this.snapshotVersion, snapshotVersion, this.resumeToken);
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
TargetData targetData = (TargetData) obj;
return this.target.equals(targetData.target) && this.targetId == targetData.targetId && this.sequenceNumber == targetData.sequenceNumber && this.purpose.equals(targetData.purpose) && this.snapshotVersion.equals(targetData.snapshotVersion) && this.lastLimboFreeSnapshotVersion.equals(targetData.lastLimboFreeSnapshotVersion) && this.resumeToken.equals(targetData.resumeToken);
}
public final int hashCode() {
int hashCode = this.target.hashCode();
int i = this.targetId;
int i2 = (int) this.sequenceNumber;
int hashCode2 = this.purpose.hashCode();
int hashCode3 = this.snapshotVersion.hashCode();
return (((((((((((hashCode * 31) + i) * 31) + i2) * 31) + hashCode2) * 31) + hashCode3) * 31) + this.lastLimboFreeSnapshotVersion.hashCode()) * 31) + this.resumeToken.hashCode();
}
public final String toString() {
StringBuilder sb = new StringBuilder("TargetData{target=");
sb.append(this.target);
sb.append(", targetId=");
sb.append(this.targetId);
sb.append(", sequenceNumber=");
sb.append(this.sequenceNumber);
sb.append(", purpose=");
sb.append(this.purpose);
sb.append(", snapshotVersion=");
sb.append(this.snapshotVersion);
sb.append(", lastLimboFreeSnapshotVersion=");
sb.append(this.lastLimboFreeSnapshotVersion);
sb.append(", resumeToken=");
sb.append(this.resumeToken);
sb.append(UrlTreeKt.componentParamSuffixChar);
return sb.toString();
}
public final int getTargetId() {
return this.targetId;
}
public final Target getTarget() {
return this.target;
}
public final SnapshotVersion getSnapshotVersion() {
return this.snapshotVersion;
}
public final long getSequenceNumber() {
return this.sequenceNumber;
}
public final QwV getResumeToken() {
return this.resumeToken;
}
public final QueryPurpose getPurpose() {
return this.purpose;
}
public final SnapshotVersion getLastLimboFreeSnapshotVersion() {
return this.lastLimboFreeSnapshotVersion;
}
}