package i.b.a.h;

/* JADX INFO: compiled from: AsyncOperation.java */
/* JADX INFO: loaded from: classes.dex */
public class a {
    final EnumC0132a a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    final i.b.a.a<Object, Object> f4249b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private final i.b.a.i.a f4250c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    final Object f4251d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    final int f4252e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    volatile long f4253f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    volatile long f4254g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    volatile Throwable f4255h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    volatile Object f4256i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    volatile int f4257j;

    /* JADX INFO: renamed from: i.b.a.h.a$a, reason: collision with other inner class name */
    /* JADX INFO: compiled from: AsyncOperation.java */
    public enum EnumC0132a {
        Insert,
        InsertInTxIterable,
        InsertInTxArray,
        InsertOrReplace,
        InsertOrReplaceInTxIterable,
        InsertOrReplaceInTxArray,
        Update,
        UpdateInTxIterable,
        UpdateInTxArray,
        Delete,
        DeleteInTxIterable,
        DeleteInTxArray,
        DeleteByKey,
        DeleteAll,
        TransactionRunnable,
        TransactionCallable,
        QueryList,
        QueryUnique,
        Load,
        LoadAll,
        Count,
        Refresh
    }

    i.b.a.i.a a() {
        i.b.a.i.a aVar = this.f4250c;
        return aVar != null ? aVar : this.f4249b.getDatabase();
    }

    public boolean b() {
        return this.f4255h != null;
    }

    public boolean c() {
        return (this.f4252e & 1) != 0;
    }

    boolean d(a aVar) {
        return aVar != null && c() && aVar.c() && a() == aVar.a();
    }

    void e() {
        this.f4255h = null;
    }

    synchronized void f() {
        notifyAll();
    }
}
