package com.google.firebase.firestore.local;

import android.database.Cursor;
import com.google.firebase.firestore.util.Function;

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

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

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

    public /* synthetic */ q(Object obj, int i6) {
        this.f14060a = i6;
        this.f14061b = obj;
    }

    @Override // com.google.firebase.firestore.util.Function
    public final Object apply(Object obj) {
        switch (this.f14060a) {
            case 0:
                return SQLiteBundleCache.lambda$getBundleMetadata$0((String) this.f14061b, (Cursor) obj);
            case 1:
                return ((SQLiteMutationQueue) this.f14061b).lambda$getNextMutationBatchAfterBatchId$4((Cursor) obj);
            default:
                return ((SQLiteDocumentOverlayCache) this.f14061b).lambda$getOverlay$0((Cursor) obj);
        }
    }
}
