package uk;

import java.math.BigDecimal;

/* loaded from: classes3.dex */
public final class f extends Number {

    /* renamed from: p, reason: collision with root package name */
    private final String f37280p;

    public f(String str) {
        this.f37280p = str;
    }

    @Override // java.lang.Number
    public double doubleValue() {
        return Double.parseDouble(this.f37280p);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof f)) {
            return false;
        }
        String str = this.f37280p;
        String str2 = ((f) obj).f37280p;
        return str == str2 || str.equals(str2);
    }

    @Override // java.lang.Number
    public float floatValue() {
        return Float.parseFloat(this.f37280p);
    }

    public int hashCode() {
        return this.f37280p.hashCode();
    }

    @Override // java.lang.Number
    public int intValue() {
        try {
            try {
                return Integer.parseInt(this.f37280p);
            } catch (NumberFormatException unused) {
                return (int) Long.parseLong(this.f37280p);
            }
        } catch (NumberFormatException unused2) {
            return new BigDecimal(this.f37280p).intValue();
        }
    }

    @Override // java.lang.Number
    public long longValue() {
        try {
            return Long.parseLong(this.f37280p);
        } catch (NumberFormatException unused) {
            return new BigDecimal(this.f37280p).longValue();
        }
    }

    public String toString() {
        return this.f37280p;
    }
}
