package com.google.firebase.firestore.local;

import android.database.Cursor;
import com.google.firebase.firestore.local.SQLiteTargetCache;
import com.google.firebase.firestore.util.Consumer;
import java.util.HashMap;
import java.util.HashSet;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class p implements Consumer {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f14058a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Object f14059b;

    public /* synthetic */ p(Object obj, int i6) {
        this.f14058a = i6;
        this.f14059b = obj;
    }

    @Override // com.google.firebase.firestore.util.Consumer
    public final void accept(Object obj) {
        switch (this.f14058a) {
            case 0:
                MemoryLruReferenceDelegate.lambda$getSequenceNumberCount$0((long[]) this.f14059b, (Long) obj);
                break;
            case 1:
                SQLiteIndexManager.lambda$start$1((HashMap) this.f14059b, (Cursor) obj);
                break;
            case 2:
                SQLiteLruReferenceDelegate.lambda$forEachOrphanedDocumentSequenceNumber$1((Consumer) this.f14059b, (Cursor) obj);
                break;
            case 3:
                SQLiteTargetCache.lambda$getMatchingKeysForTargetId$4((SQLiteTargetCache.DocumentKeysHolder) this.f14059b, (Cursor) obj);
                break;
            case 4:
                ((SQLiteTargetCache) this.f14059b).lambda$start$0((Cursor) obj);
                break;
            case 5:
                SQLiteOverlayMigrationManager.lambda$hasPendingOverlayMigration$2((Boolean[]) this.f14059b, (Cursor) obj);
                break;
            default:
                SQLiteOverlayMigrationManager.lambda$getAllUserIds$1((HashSet) this.f14059b, (Cursor) obj);
                break;
        }
    }
}
