| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private int | |
| private String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private int | |
| private String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public double | doubleValue()
Implements abstract java. double.
|
| private int | |
| public float | floatValue()
Implements abstract java. float.
|
| public int | |
| public String | |
| public int | |
| public int | |
| public String | |
| public String | |
| public int | intValue()
Implements abstract java. int.
|
| public long | longValue()
Implements abstract java. long.
|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public BigDecimal | toBigDecimal()
So, it turns out that parsing arbitrary bases into arbitrary precision numbers is nontrivial, and this routine gets it wrong in many important cases. |
| public Number | |
| public String |
| base | back to summary |
|---|---|
| private final int base | |
| expbase | back to summary |
|---|---|
| private int expbase | |
| exponent | back to summary |
|---|---|
| private String exponent | |
| F_DOUBLE | back to summary |
|---|---|
| public static final int F_DOUBLE | |
| F_FLOAT | back to summary |
|---|---|
| public static final int F_FLOAT | |
| F_INT | back to summary |
|---|---|
| public static final int F_INT | |
| F_LONG | back to summary |
|---|---|
| public static final int F_LONG | |
| F_LONGLONG | back to summary |
|---|---|
| public static final int F_LONGLONG | |
| F_UNSIGNED | back to summary |
|---|---|
| public static final int F_UNSIGNED | |
| FF_SIZE | back to summary |
|---|---|
| public static final int FF_SIZE | |
| flags | back to summary |
|---|---|
| private int flags | |
| fraction | back to summary |
|---|---|
| private String fraction | |
| integer | back to summary |
|---|---|
| private final String integer | |
| NumericValue | back to summary |
|---|---|
| public NumericValue(int base, String integer) | |
| appendFlags | back to summary |
|---|---|
| private boolean appendFlags(StringBuilder buf, String suffix, int flag) | |
| doubleValue | back to summary |
|---|---|
| public double doubleValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| exponentValue | back to summary |
|---|---|
| private int exponentValue() | |
| floatValue | back to summary |
|---|---|
| public float floatValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| getBase | back to summary |
|---|---|
public int getBase()
| |
| getExponent | back to summary |
|---|---|
public String getExponent()
| |
| getExponentBase | back to summary |
|---|---|
public int getExponentBase()
| |
| getFlags | back to summary |
|---|---|
| public int getFlags() | |
| getFractionalPart | back to summary |
|---|---|
public String getFractionalPart()
| |
| getIntegerPart | back to summary |
|---|---|
public String getIntegerPart()
| |
| intValue | back to summary |
|---|---|
| public int intValue() Implements abstract java. Doc from java. Returns the value of the specified number as an
| |
| longValue | back to summary |
|---|---|
| public long longValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| setExponent | back to summary |
|---|---|
| pack-priv void setExponent(int expbase, String exponent) | |
| setFlags | back to summary |
|---|---|
| pack-priv void setFlags(int flags) | |
| setFractionalPart | back to summary |
|---|---|
| pack-priv void setFractionalPart(String fraction) | |
| toBigDecimal | back to summary |
|---|---|
| public BigDecimal toBigDecimal() So, it turns out that parsing arbitrary bases into arbitrary precision numbers is nontrivial, and this routine gets it wrong in many important cases.
| |
| toJavaLangNumber | back to summary |
|---|---|
public Number toJavaLangNumber()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |