package f.a.w.a;

import f.a.g;
import f.a.n;
import f.a.q;

/* JADX INFO: compiled from: EmptyDisposable.java */
/* JADX INFO: loaded from: classes.dex */
public enum c implements f.a.w.c.a<Object> {
    INSTANCE,
    NEVER;

    public static void complete(n<?> nVar) {
        nVar.b(INSTANCE);
        nVar.onComplete();
    }

    public static void error(Throwable th, n<?> nVar) {
        nVar.b(INSTANCE);
        nVar.a(th);
    }

    @Override // f.a.w.c.d
    public void clear() {
    }

    @Override // f.a.t.b
    public void dispose() {
    }

    public boolean isDisposed() {
        return this == INSTANCE;
    }

    @Override // f.a.w.c.d
    public boolean isEmpty() {
        return true;
    }

    @Override // f.a.w.c.d
    public boolean offer(Object obj) {
        throw new UnsupportedOperationException("Should not be called!");
    }

    @Override // f.a.w.c.d
    public Object poll() throws Exception {
        return null;
    }

    @Override // f.a.w.c.a
    public int requestFusion(int i2) {
        return i2 & 2;
    }

    public boolean offer(Object obj, Object obj2) {
        throw new UnsupportedOperationException("Should not be called!");
    }

    public static void complete(g<?> gVar) {
        gVar.b(INSTANCE);
        gVar.onComplete();
    }

    public static void error(Throwable th, f.a.c cVar) {
        cVar.b(INSTANCE);
        cVar.a(th);
    }

    public static void complete(f.a.c cVar) {
        cVar.b(INSTANCE);
        cVar.onComplete();
    }

    public static void error(Throwable th, q<?> qVar) {
        qVar.b(INSTANCE);
        qVar.a(th);
    }

    public static void error(Throwable th, g<?> gVar) {
        gVar.b(INSTANCE);
        gVar.a(th);
    }
}
