package k1;

import java.io.Serializable;

/* JADX INFO: compiled from: Result.kt */
/* JADX INFO: loaded from: classes.dex */
public final class i<T> implements Serializable {

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

    /* JADX INFO: compiled from: Result.kt */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(w1.e eVar) {
            this();
        }
    }

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

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

        public b(Throwable th) {
            w1.g.e(th, "exception");
            this.f5166e = th;
        }

        public boolean equals(Object obj) {
            return (obj instanceof b) && w1.g.a(this.f5166e, ((b) obj).f5166e);
        }

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

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

    public static <T> Object a(Object obj) {
        return obj;
    }

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

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

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