- All Implemented Interfaces:
Value,Serializable,Comparable<NullValue>,Constable
The absent (SQL
NULL) value, compatible with all scalar types.
Use the singleton INSTANCE rather than constructing a new instance.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable display string for this value, suitable for output formatting.booleanisNull()Returnstrueif this value is null (absent).type()Returns theScalarTypethat describes this value's kind.static NullValueReturns the enum constant of this class with the specified name.static NullValue[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The sole null value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isNull
public boolean isNull()Description copied from interface:ValueReturnstrueif this value is null (absent). -
type
Description copied from interface:Value -
asDisplayString
Description copied from interface:ValueReturns a human-readable display string for this value, suitable for output formatting.NullValuereturns"NULL".- Specified by:
asDisplayStringin interfaceValue- Returns:
- display string; never
null
-