package d;

import java.io.Serializable;

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

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

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

        public /* synthetic */ a(d.n0.c.l lVar) {
            this();
        }
    }

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

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

        public b(Throwable th) {
            d.n0.c.s.e(th, "exception");
            this.f2688c = th;
        }

        public boolean equals(Object obj) {
            return (obj instanceof b) && d.n0.c.s.a(this.f2688c, ((b) obj).f2688c);
        }

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

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

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

    public static final boolean b(Object obj, Object obj2) {
        return d.n0.c.s.a(obj, obj2);
    }

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