package s8; import java.io.Serializable; /* loaded from: classes2.dex */ public final class n implements Serializable { /* renamed from: b, reason: collision with root package name */ public static final a f14096b = new a(null); /* renamed from: a, reason: collision with root package name */ private final Object f14097a; public static final class a { private a() { } public /* synthetic */ a(d9.g gVar) { this(); } } public static final class b implements Serializable { /* renamed from: a, reason: collision with root package name */ public final Throwable f14098a; public b(Throwable th) { d9.j.e(th, "exception"); this.f14098a = th; } public boolean equals(Object obj) { return (obj instanceof b) && d9.j.a(this.f14098a, ((b) obj).f14098a); } public int hashCode() { return this.f14098a.hashCode(); } public String toString() { return "Failure(" + this.f14098a + ')'; } } private /* synthetic */ n(Object obj) { this.f14097a = obj; } public static final /* synthetic */ n a(Object obj) { return new n(obj); } public static Object b(Object obj) { return obj; } public static boolean c(Object obj, Object obj2) { return (obj2 instanceof n) && d9.j.a(obj, ((n) obj2).i()); } public static final Throwable d(Object obj) { if (obj instanceof b) { return ((b) obj).f14098a; } 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.f14097a, obj); } public int hashCode() { return e(this.f14097a); } public final /* synthetic */ Object i() { return this.f14097a; } public String toString() { return h(this.f14097a); } }