Class Numeric
java.lang.Object
java.lang.Number
io.vertx.sqlclient.data.Numeric
- All Implemented Interfaces:
Serializable
-
Field Details
-
NaN
Constant for theNaNvalue.
-
-
Method Details
-
create
Return aNumericinstance for the givennumber. Null values or infiniteDoubleorFloatare rejected.- Parameters:
number- the number- Returns:
- the
Numericvalue - Throws:
NumberFormatException- when the number is infinite
-
parse
-
shortValue
public short shortValue()- Overrides:
shortValuein classNumber
-
intValue
-
longValue
-
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
isNaN
public boolean isNaN()- Returns:
truewhen this number representsNaN
-
bigDecimalValue
- Returns:
- the numeric value represented by this object after conversion
to type
BigDecimal. It can benullwhen this instance represents theNaNvalue.
-
bigIntegerValue
- Returns:
- the numeric value represented by this object after conversion
to type
BigInteger. It can benullwhen this instance represents theNaNvalue.
-
equals
-
hashCode
-
toString
-