public final class Numeric extends Number
| Modifier and Type | Field and Description | 
|---|---|
| static Numeric | NaNConstant for the  NaNvalue. | 
| Modifier and Type | Method and Description | 
|---|---|
| BigDecimal | bigDecimalValue() | 
| BigInteger | bigIntegerValue() | 
| static Numeric | create(Number number)Return a  Numericinstance for the givennumber. | 
| double | doubleValue() | 
| boolean | equals(Object obj) | 
| float | floatValue() | 
| int | hashCode() | 
| int | intValue() | 
| boolean | isNaN() | 
| long | longValue() | 
| static Numeric | parse(String s)Parse and return a  Numericinstance for the givens. | 
| short | shortValue() | 
| String | toString() | 
public static final Numeric NaN
NaN value.public static Numeric create(Number number)
Numeric instance for the given number.
 
 Null values or infinite Double or Float are rejected.number - the numberNumeric valueNumberFormatException - when the number is infinitepublic short shortValue()
shortValue in class Numberpublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic boolean isNaN()
true when this number represents NaNpublic BigDecimal bigDecimalValue()
BigDecimal. It can be null when this instance
          represents the NaN value.public BigInteger bigIntegerValue()
BigInteger. It can be null when this instance
          represents the NaN value.Copyright © 2021 Eclipse. All rights reserved.