package d.a.s.h;

import d.a.l;
import java.io.Serializable;

/* JADX INFO: loaded from: classes.dex */
public enum e {
    COMPLETE;

    public static final class a implements Serializable {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final d.a.p.b f5914b;

        public a(d.a.p.b bVar) {
            this.f5914b = bVar;
        }

        public String toString() {
            StringBuilder sbC = a.b.c.a.a.C("NotificationLite.Disposable[");
            sbC.append(this.f5914b);
            sbC.append("]");
            return sbC.toString();
        }
    }

    public static final class b implements Serializable {

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

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

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

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

        public String toString() {
            StringBuilder sbC = a.b.c.a.a.C("NotificationLite.Error[");
            sbC.append(this.f5915b);
            sbC.append("]");
            return sbC.toString();
        }
    }

    public static final class c implements Serializable {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final i.b.b f5916b;

        public c(i.b.b bVar) {
            this.f5916b = bVar;
        }

        public String toString() {
            StringBuilder sbC = a.b.c.a.a.C("NotificationLite.Subscription[");
            sbC.append(this.f5916b);
            sbC.append("]");
            return sbC.toString();
        }
    }

    public static <T> boolean accept(Object obj, l<? super T> lVar) {
        if (obj == COMPLETE) {
            lVar.b();
            return true;
        }
        if (obj instanceof b) {
            lVar.a(((b) obj).f5915b);
            return true;
        }
        lVar.d(obj);
        return false;
    }

    public static <T> boolean accept(Object obj, i.b.a<? super T> aVar) {
        if (obj == COMPLETE) {
            aVar.b();
            return true;
        }
        if (obj instanceof b) {
            aVar.a(((b) obj).f5915b);
            return true;
        }
        aVar.d(obj);
        return false;
    }

    public static <T> boolean acceptFull(Object obj, l<? super T> lVar) {
        if (obj == COMPLETE) {
            lVar.b();
            return true;
        }
        if (obj instanceof b) {
            lVar.a(((b) obj).f5915b);
            return true;
        }
        if (obj instanceof a) {
            lVar.c(((a) obj).f5914b);
            return false;
        }
        lVar.d(obj);
        return false;
    }

    public static <T> boolean acceptFull(Object obj, i.b.a<? super T> aVar) {
        if (obj == COMPLETE) {
            aVar.b();
            return true;
        }
        if (obj instanceof b) {
            aVar.a(((b) obj).f5915b);
            return true;
        }
        if (obj instanceof c) {
            aVar.c(((c) obj).f5916b);
            return false;
        }
        aVar.d(obj);
        return false;
    }

    public static Object complete() {
        return COMPLETE;
    }

    public static Object disposable(d.a.p.b bVar) {
        return new a(bVar);
    }

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

    public static d.a.p.b getDisposable(Object obj) {
        return ((a) obj).f5914b;
    }

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

    public static i.b.b getSubscription(Object obj) {
        return ((c) obj).f5916b;
    }

    /* 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(i.b.b bVar) {
        return new c(bVar);
    }

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