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

81 lines
2.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.firestore.model;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import com.google.firebase.firestore.model.FieldIndex;
import java.util.List;
/* loaded from: classes2.dex */
final class AutoValue_FieldIndex extends FieldIndex {
private final String collectionGroup;
private final int indexId;
private final FieldIndex.IndexState indexState;
private final List<FieldIndex.Segment> segments;
/* JADX INFO: Access modifiers changed from: package-private */
public AutoValue_FieldIndex(int i, String str, List<FieldIndex.Segment> list, FieldIndex.IndexState indexState) {
this.indexId = i;
if (str == null) {
throw new NullPointerException("Null collectionGroup");
}
this.collectionGroup = str;
if (list == null) {
throw new NullPointerException("Null segments");
}
this.segments = list;
if (indexState == null) {
throw new NullPointerException("Null indexState");
}
this.indexState = indexState;
}
public final String toString() {
StringBuilder sb = new StringBuilder("FieldIndex{indexId=");
sb.append(this.indexId);
sb.append(", collectionGroup=");
sb.append(this.collectionGroup);
sb.append(", segments=");
sb.append(this.segments);
sb.append(", indexState=");
sb.append(this.indexState);
sb.append(UrlTreeKt.componentParamSuffix);
return sb.toString();
}
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof FieldIndex)) {
return false;
}
FieldIndex fieldIndex = (FieldIndex) obj;
return this.indexId == fieldIndex.getIndexId() && this.collectionGroup.equals(fieldIndex.getCollectionGroup()) && this.segments.equals(fieldIndex.getSegments()) && this.indexState.equals(fieldIndex.getIndexState());
}
public final int hashCode() {
int i = this.indexId;
int hashCode = this.collectionGroup.hashCode();
return ((((((i ^ 1000003) * 1000003) ^ hashCode) * 1000003) ^ this.segments.hashCode()) * 1000003) ^ this.indexState.hashCode();
}
@Override // com.google.firebase.firestore.model.FieldIndex
public final List<FieldIndex.Segment> getSegments() {
return this.segments;
}
@Override // com.google.firebase.firestore.model.FieldIndex
public final FieldIndex.IndexState getIndexState() {
return this.indexState;
}
@Override // com.google.firebase.firestore.model.FieldIndex
public final int getIndexId() {
return this.indexId;
}
@Override // com.google.firebase.firestore.model.FieldIndex
public final String getCollectionGroup() {
return this.collectionGroup;
}
}