66 lines
1.5 KiB
Java
66 lines
1.5 KiB
Java
package b.g.a.c.i0;
|
|
|
|
import b.d.b.a.a;
|
|
import b.g.a.c.j;
|
|
/* compiled from: TypeKey.java */
|
|
/* loaded from: classes3.dex */
|
|
public class u {
|
|
public int a;
|
|
|
|
/* renamed from: b reason: collision with root package name */
|
|
public Class<?> f727b;
|
|
public j c;
|
|
public boolean d;
|
|
|
|
public u() {
|
|
}
|
|
|
|
public u(j jVar, boolean z2) {
|
|
this.c = jVar;
|
|
this.f727b = null;
|
|
this.d = z2;
|
|
this.a = z2 ? jVar._hash - 2 : jVar._hash - 1;
|
|
}
|
|
|
|
public u(Class<?> cls, boolean z2) {
|
|
this.f727b = cls;
|
|
this.c = null;
|
|
this.d = z2;
|
|
this.a = z2 ? cls.getName().hashCode() + 1 : cls.getName().hashCode();
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (obj == null) {
|
|
return false;
|
|
}
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (obj.getClass() != u.class) {
|
|
return false;
|
|
}
|
|
u uVar = (u) obj;
|
|
if (uVar.d != this.d) {
|
|
return false;
|
|
}
|
|
Class<?> cls = this.f727b;
|
|
return cls != null ? uVar.f727b == cls : this.c.equals(uVar.c);
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return this.a;
|
|
}
|
|
|
|
public final String toString() {
|
|
if (this.f727b != null) {
|
|
StringBuilder R = a.R("{class: ");
|
|
a.i0(this.f727b, R, ", typed? ");
|
|
return a.M(R, this.d, "}");
|
|
}
|
|
StringBuilder R2 = a.R("{type: ");
|
|
R2.append(this.c);
|
|
R2.append(", typed? ");
|
|
return a.M(R2, this.d, "}");
|
|
}
|
|
}
|