package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.sr, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2470sr implements InterfaceC2281qr {
    public final float l;
    public final float m;
    public final JA n;

    public C2470sr(float f, float f2, JA ja) {
        this.l = f;
        this.m = f2;
        this.n = ja;
    }

    @Override // o.InterfaceC2281qr
    public final float J(long j) {
        if (C1115ef0.a(C1020df0.b(j), 4294967296L)) {
            return this.n.b(C1020df0.c(j));
        }
        throw new IllegalStateException("Only Sp can convert to Px");
    }

    @Override // o.InterfaceC2281qr
    public final float e() {
        return this.l;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C2470sr)) {
            return false;
        }
        C2470sr c2470sr = (C2470sr) obj;
        return Float.compare(this.l, c2470sr.l) == 0 && Float.compare(this.m, c2470sr.m) == 0 && F3.c(this.n, c2470sr.n);
    }

    public final int hashCode() {
        return this.n.hashCode() + AbstractC0126Ew.d(this.m, Float.hashCode(this.l) * 31, 31);
    }

    @Override // o.InterfaceC2281qr
    public final float q() {
        return this.m;
    }

    public final String toString() {
        return "DensityWithConverter(density=" + this.l + ", fontScale=" + this.m + ", converter=" + this.n + ')';
    }

    @Override // o.InterfaceC2281qr
    public final long y(float f) {
        return C1884mi0.H(this.n.a(f), 4294967296L);
    }
}
