package hp;

/* loaded from: classes3.dex */
public abstract class i1 implements h1 {
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof h1)) {
            return false;
        }
        h1 h1Var = (h1) obj;
        return b() == h1Var.b() && a() == h1Var.a() && getType().equals(h1Var.getType());
    }

    public int hashCode() {
        int hashCode = a().hashCode();
        if (p1.w(getType())) {
            return (hashCode * 31) + 19;
        }
        return (hashCode * 31) + (b() ? 17 : getType().hashCode());
    }

    public String toString() {
        if (b()) {
            return "*";
        }
        if (a() == t1.INVARIANT) {
            return getType().toString();
        }
        return a() + " " + getType();
    }
}
