package n1;

import java.io.Serializable;

/* JADX INFO: loaded from: classes.dex */
public final class l implements Serializable {

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public static final a f5861g = new a(null);

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final Object f5862b;

    public static final class a {
        public /* synthetic */ a(kotlin.jvm.internal.g gVar) {
            this();
        }

        private a() {
        }
    }

    public static final class b implements Serializable {

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

        public b(Throwable exception) {
            kotlin.jvm.internal.l.e(exception, "exception");
            this.f5863b = exception;
        }

        public boolean equals(Object obj) {
            return (obj instanceof b) && kotlin.jvm.internal.l.a(this.f5863b, ((b) obj).f5863b);
        }

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

        public String toString() {
            return "Failure(" + this.f5863b + ')';
        }
    }

    private /* synthetic */ l(Object obj) {
        this.f5862b = obj;
    }

    public static final /* synthetic */ l a(Object obj) {
        return new l(obj);
    }

    public static Object b(Object obj) {
        return obj;
    }

    public static boolean c(Object obj, Object obj2) {
        return (obj2 instanceof l) && kotlin.jvm.internal.l.a(obj, ((l) obj2).i());
    }

    public static final Throwable d(Object obj) {
        if (obj instanceof b) {
            return ((b) obj).f5863b;
        }
        return null;
    }

    public static int e(Object obj) {
        if (obj == null) {
            return 0;
        }
        return obj.hashCode();
    }

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

    public static final boolean g(Object obj) {
        return !(obj instanceof b);
    }

    public static String h(Object obj) {
        if (obj instanceof b) {
            return ((b) obj).toString();
        }
        return "Success(" + obj + ')';
    }

    public boolean equals(Object obj) {
        return c(this.f5862b, obj);
    }

    public int hashCode() {
        return e(this.f5862b);
    }

    public final /* synthetic */ Object i() {
        return this.f5862b;
    }

    public String toString() {
        return h(this.f5862b);
    }
}
