package com.facetec.sdk; import java.io.ObjectStreamException; import java.math.BigDecimal; /* loaded from: classes.dex */ public final class eu extends Number { private final String b; public eu(String str) { this.b = str; } @Override // java.lang.Number public final int intValue() { try { try { return Integer.parseInt(this.b); } catch (NumberFormatException unused) { return (int) Long.parseLong(this.b); } } catch (NumberFormatException unused2) { return new BigDecimal(this.b).intValue(); } } @Override // java.lang.Number public final long longValue() { try { return Long.parseLong(this.b); } catch (NumberFormatException unused) { return new BigDecimal(this.b).longValue(); } } @Override // java.lang.Number public final float floatValue() { return Float.parseFloat(this.b); } @Override // java.lang.Number public final double doubleValue() { return Double.parseDouble(this.b); } private Object writeReplace() throws ObjectStreamException { return new BigDecimal(this.b); } public final int hashCode() { return this.b.hashCode(); } public final boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof eu)) { return false; } String str = this.b; String str2 = ((eu) obj).b; return str == str2 || str.equals(str2); } public final String toString() { return this.b; } }