package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Ni, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0345Ni {
    public final String a;
    public final long b;
    public final int c;

    public AbstractC0345Ni(String str, int i, long j) {
        this.a = str;
        this.b = j;
        this.c = i;
        if (str.length() == 0) {
            throw new IllegalArgumentException("The name of a color space cannot be null and must contain at least 1 character");
        }
        if (i < -1 || i > 63) {
            throw new IllegalArgumentException("The id must be between -1 and 63");
        }
    }

    public abstract float a(int i);

    public abstract float b(int i);

    public boolean c() {
        return false;
    }

    public abstract long d(float f, float f2, float f3);

    public abstract float e(float f, float f2, float f3);

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        AbstractC0345Ni abstractC0345Ni = (AbstractC0345Ni) obj;
        if (this.c == abstractC0345Ni.c && F3.c(this.a, abstractC0345Ni.a)) {
            return AbstractC0242Ji.a(this.b, abstractC0345Ni.b);
        }
        return false;
    }

    public abstract long f(float f, float f2, float f3, float f4, AbstractC0345Ni abstractC0345Ni);

    public int hashCode() {
        int iHashCode = this.a.hashCode() * 31;
        int i = AbstractC0242Ji.e;
        return AbstractC0126Ew.f(iHashCode, 31, this.b) + this.c;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.a);
        sb.append(" (id=");
        sb.append(this.c);
        sb.append(", model=");
        long j = AbstractC0242Ji.a;
        long j2 = this.b;
        sb.append((Object) (AbstractC0242Ji.a(j2, j) ? "Rgb" : AbstractC0242Ji.a(j2, AbstractC0242Ji.b) ? "Xyz" : AbstractC0242Ji.a(j2, AbstractC0242Ji.c) ? "Lab" : AbstractC0242Ji.a(j2, AbstractC0242Ji.d) ? "Cmyk" : "Unknown"));
        sb.append(')');
        return sb.toString();
    }
}
