discord-jadx/app/src/main/java/d0/e0/i.java

117 lines
3.0 KiB
Java
Raw Normal View History

2021-11-08 18:25:28 +00:00
package d0.e0;
2021-06-27 20:44:35 +00:00
2021-11-08 18:25:28 +00:00
import d0.z.d.m;
2021-06-27 20:44:35 +00:00
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KType;
/* compiled from: KTypeProjection.kt */
2022-03-02 20:59:20 +00:00
/* loaded from: classes3.dex */
2021-06-27 20:44:35 +00:00
public final class i {
2021-12-21 23:37:30 +00:00
public final j c;
2021-06-27 20:44:35 +00:00
public final KType d;
2022-03-02 20:59:20 +00:00
/* renamed from: b reason: collision with root package name */
2022-03-30 16:43:10 +00:00
public static final a f3172b = new a(null);
2022-03-02 20:59:20 +00:00
public static final i a = new i(null, null);
2021-06-27 20:44:35 +00:00
/* compiled from: KTypeProjection.kt */
2022-03-02 20:59:20 +00:00
/* loaded from: classes3.dex */
2021-06-27 20:44:35 +00:00
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;
2021-12-21 23:37:30 +00:00
this.c = jVar;
2021-06-27 20:44:35 +00:00
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() {
2021-12-21 23:37:30 +00:00
return this.c;
2021-06-27 20:44:35 +00:00
}
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;
2021-12-21 23:37:30 +00:00
return m.areEqual(this.c, iVar.c) && m.areEqual(this.d, iVar.d);
2021-06-27 20:44:35 +00:00
}
public final KType getType() {
return this.d;
}
public final j getVariance() {
2021-12-21 23:37:30 +00:00
return this.c;
2021-06-27 20:44:35 +00:00
}
public int hashCode() {
2021-12-21 23:37:30 +00:00
j jVar = this.c;
2021-06-27 20:44:35 +00:00
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() {
2021-12-21 23:37:30 +00:00
j jVar = this.c;
2021-06-27 20:44:35 +00:00
if (jVar == null) {
return "*";
}
int ordinal = jVar.ordinal();
if (ordinal == 0) {
return String.valueOf(this.d);
}
if (ordinal == 1) {
2022-03-30 16:43:10 +00:00
StringBuilder R = b.d.b.a.a.R("in ");
R.append(this.d);
return R.toString();
2021-06-27 20:44:35 +00:00
} else if (ordinal == 2) {
2022-03-30 16:43:10 +00:00
StringBuilder R2 = b.d.b.a.a.R("out ");
R2.append(this.d);
return R2.toString();
2021-06-27 20:44:35 +00:00
} else {
throw new NoWhenBranchMatchedException();
}
}
}