package d0.e0; import d0.z.d.m; import kotlin.NoWhenBranchMatchedException; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.reflect.KType; /* compiled from: KTypeProjection.kt */ /* loaded from: classes3.dex */ public final class i { public final j c; public final KType d; /* renamed from: b reason: collision with root package name */ public static final a f3172b = new a(null); public static final i a = new i(null, null); /* compiled from: KTypeProjection.kt */ /* loaded from: classes3.dex */ public static final class a { public a(DefaultConstructorMarker defaultConstructorMarker) { } public final i contravariant(KType kType) { m.checkNotNullParameter(kType, "type"); return new i(j.IN, kType); } public final i covariant(KType kType) { m.checkNotNullParameter(kType, "type"); return new i(j.OUT, kType); } public final i getSTAR() { return i.a; } public final i invariant(KType kType) { m.checkNotNullParameter(kType, "type"); return new i(j.INVARIANT, kType); } } public i(j jVar, KType kType) { String str; this.c = jVar; this.d = kType; if (!((jVar == null) != (kType == null) ? false : true)) { if (jVar == null) { str = "Star projection must have no type specified."; } else { str = "The projection variance " + jVar + " requires type to be specified."; } throw new IllegalArgumentException(str.toString()); } } public final j component1() { return this.c; } public final KType component2() { return this.d; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof i)) { return false; } i iVar = (i) obj; return m.areEqual(this.c, iVar.c) && m.areEqual(this.d, iVar.d); } public final KType getType() { return this.d; } public final j getVariance() { return this.c; } public int hashCode() { j jVar = this.c; int i = 0; int hashCode = (jVar != null ? jVar.hashCode() : 0) * 31; KType kType = this.d; if (kType != null) { i = kType.hashCode(); } return hashCode + i; } public String toString() { j jVar = this.c; if (jVar == null) { return "*"; } int ordinal = jVar.ordinal(); if (ordinal == 0) { return String.valueOf(this.d); } if (ordinal == 1) { StringBuilder R = b.d.b.a.a.R("in "); R.append(this.d); return R.toString(); } else if (ordinal == 2) { StringBuilder R2 = b.d.b.a.a.R("out "); R2.append(this.d); return R2.toString(); } else { throw new NoWhenBranchMatchedException(); } } }