java.lang.Object
java.lang.Number
org.jooq.Decfloat
- All Implemented Interfaces:
Serializable
,Data
A wrapper type for SQL:2016 standard
DECFLOAT
data types.
The wrapper represents DECFLOAT data()
in serialised string form. A
CAST(NULL AS DECFLOAT)
value is represented by a
null
reference of type Decfloat
, not as
data() == null
. This is consistent with jOOQ's general way of
returning NULL
from Result
and Record
methods.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull String
data()
static final @NotNull Decfloat
Create a newDecfloat
instance from string data input.static final @Nullable Decfloat
decfloatOrNull
(String data) final double
boolean
final float
int
hashCode()
final int
intValue()
final boolean
isNaN()
Check whether this value is theDecfloat
equivalent ofDouble.NaN
.final boolean
Check whether this value is theDecfloat
equivalent ofDouble.NEGATIVE_INFINITY
.final boolean
Check whether this value is theDecfloat
equivalent ofDouble.POSITIVE_INFINITY
.final long
toString()
static final @NotNull Decfloat
Create a newDecfloat
instance from string data input.Methods inherited from class java.lang.Number
byteValue, shortValue
-
Method Details
-
data
Description copied from interface:Data
-
valueOf
Create a newDecfloat
instance from string data input. -
decfloat
Create a newDecfloat
instance from string data input.This is the same as
valueOf(String)
, but it can be static imported. -
decfloatOrNull
-
isNaN
public final boolean isNaN()Check whether this value is theDecfloat
equivalent ofDouble.NaN
. -
isPositiveInfinity
public final boolean isPositiveInfinity()Check whether this value is theDecfloat
equivalent ofDouble.POSITIVE_INFINITY
. -
isNegativeInfinity
public final boolean isNegativeInfinity()Check whether this value is theDecfloat
equivalent ofDouble.NEGATIVE_INFINITY
. -
doubleValue
public final double doubleValue()- Specified by:
doubleValue
in classNumber
-
floatValue
public final float floatValue()- Specified by:
floatValue
in classNumber
-
intValue
public final int intValue() -
longValue
public final long longValue() -
hashCode
public int hashCode() -
equals
-
toString
-