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 Stringdata()static final @NotNull DecfloatCreate a newDecfloatinstance from string data input.static final @Nullable DecfloatdecfloatOrNull(String data) final doublebooleanfinal floatinthashCode()final intintValue()final booleanisNaN()Check whether this value is theDecfloatequivalent ofDouble.NaN.final booleanCheck whether this value is theDecfloatequivalent ofDouble.NEGATIVE_INFINITY.final booleanCheck whether this value is theDecfloatequivalent ofDouble.POSITIVE_INFINITY.final longtoString()static final @NotNull DecfloatCreate a newDecfloatinstance from string data input.Methods inherited from class java.lang.Number
byteValue, shortValue
-
Method Details
-
data
Description copied from interface:Data -
valueOf
Create a newDecfloatinstance from string data input. -
decfloat
Create a newDecfloatinstance 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 theDecfloatequivalent ofDouble.NaN. -
isPositiveInfinity
public final boolean isPositiveInfinity()Check whether this value is theDecfloatequivalent ofDouble.POSITIVE_INFINITY. -
isNegativeInfinity
public final boolean isNegativeInfinity()Check whether this value is theDecfloatequivalent ofDouble.NEGATIVE_INFINITY. -
doubleValue
public final double doubleValue()- Specified by:
doubleValuein classNumber
-
floatValue
public final float floatValue()- Specified by:
floatValuein classNumber
-
intValue
public final int intValue() -
longValue
public final long longValue() -
hashCode
public int hashCode() -
equals
-
toString
-