package f.a.w.h;

import f.a.n;
import java.io.Serializable;

/* JADX INFO: compiled from: NotificationLite.java */
/* JADX INFO: loaded from: classes.dex */
public enum d {
    COMPLETE;

    /* JADX INFO: compiled from: NotificationLite.java */
    public static final class a implements Serializable {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final f.a.t.b f4037b;

        public a(f.a.t.b bVar) {
            this.f4037b = bVar;
        }

        public String toString() {
            StringBuilder sbB = d.b.a.a.a.B("NotificationLite.Disposable[");
            sbB.append(this.f4037b);
            sbB.append("]");
            return sbB.toString();
        }
    }

    /* JADX INFO: compiled from: NotificationLite.java */
    public static final class b implements Serializable {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final Throwable f4038b;

        public b(Throwable th) {
            this.f4038b = th;
        }

        public boolean equals(Object obj) {
            if (!(obj instanceof b)) {
                return false;
            }
            Throwable th = this.f4038b;
            Throwable th2 = ((b) obj).f4038b;
            return th == th2 || (th != null && th.equals(th2));
        }

        public int hashCode() {
            return this.f4038b.hashCode();
        }

        public String toString() {
            StringBuilder sbB = d.b.a.a.a.B("NotificationLite.Error[");
            sbB.append(this.f4038b);
            sbB.append("]");
            return sbB.toString();
        }
    }

    /* JADX INFO: compiled from: NotificationLite.java */
    public static final class c implements Serializable {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final k.d.c f4039b;

        public c(k.d.c cVar) {
            this.f4039b = cVar;
        }

        public String toString() {
            StringBuilder sbB = d.b.a.a.a.B("NotificationLite.Subscription[");
            sbB.append(this.f4039b);
            sbB.append("]");
            return sbB.toString();
        }
    }

    public static <T> boolean accept(Object obj, k.d.b<? super T> bVar) {
        if (obj == COMPLETE) {
            bVar.onComplete();
            return true;
        }
        if (obj instanceof b) {
            bVar.a(((b) obj).f4038b);
            return true;
        }
        bVar.c(obj);
        return false;
    }

    public static <T> boolean acceptFull(Object obj, k.d.b<? super T> bVar) {
        if (obj == COMPLETE) {
            bVar.onComplete();
            return true;
        }
        if (obj instanceof b) {
            bVar.a(((b) obj).f4038b);
            return true;
        }
        if (obj instanceof c) {
            bVar.b(((c) obj).f4039b);
            return false;
        }
        bVar.c(obj);
        return false;
    }

    public static Object complete() {
        return COMPLETE;
    }

    public static Object disposable(f.a.t.b bVar) {
        return new a(bVar);
    }

    public static Object error(Throwable th) {
        return new b(th);
    }

    public static f.a.t.b getDisposable(Object obj) {
        return ((a) obj).f4037b;
    }

    public static Throwable getError(Object obj) {
        return ((b) obj).f4038b;
    }

    public static k.d.c getSubscription(Object obj) {
        return ((c) obj).f4039b;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static <T> T getValue(Object obj) {
        return obj;
    }

    public static boolean isComplete(Object obj) {
        return obj == COMPLETE;
    }

    public static boolean isDisposable(Object obj) {
        return obj instanceof a;
    }

    public static boolean isError(Object obj) {
        return obj instanceof b;
    }

    public static boolean isSubscription(Object obj) {
        return obj instanceof c;
    }

    public static <T> Object next(T t) {
        return t;
    }

    public static Object subscription(k.d.c cVar) {
        return new c(cVar);
    }

    @Override // java.lang.Enum
    public String toString() {
        return "NotificationLite.Complete";
    }

    public static <T> boolean accept(Object obj, n<? super T> nVar) {
        if (obj == COMPLETE) {
            nVar.onComplete();
            return true;
        }
        if (obj instanceof b) {
            nVar.a(((b) obj).f4038b);
            return true;
        }
        nVar.c(obj);
        return false;
    }

    public static <T> boolean acceptFull(Object obj, n<? super T> nVar) {
        if (obj == COMPLETE) {
            nVar.onComplete();
            return true;
        }
        if (obj instanceof b) {
            nVar.a(((b) obj).f4038b);
            return true;
        }
        if (obj instanceof a) {
            nVar.b(((a) obj).f4037b);
            return false;
        }
        nVar.c(obj);
        return false;
    }
}
