public abstract class NullableFloat
extends java.lang.Object
Functions for the implementation of nullable float
.
Constructor and Description |
---|
NullableFloat() |
Modifier and Type | Method and Description |
---|---|
static boolean |
equal(java.lang.Float left,
java.lang.Float right)
Return
true if left == right , otherwise false . |
static float |
getValue(java.lang.Float value)
Return non-
null value. |
static boolean |
hasValue(java.lang.Float left,
float right)
Return
true if left == right , otherwise false . |
static boolean |
isNull(java.lang.Float value)
Return
true if value is null , otherwise false . |
static boolean |
notEqual(java.lang.Float left,
java.lang.Float right)
Return
true if left != right , otherwise false . |
static boolean |
notNull(java.lang.Float value)
Return
true if value is not null , otherwise false . |
static java.lang.Float |
nullValue()
Return (nullable) The
null float value. |
static java.lang.String |
toString(java.lang.Float value)
Return "null" if
value is null , otherwise value.toString() . |
static java.lang.Float |
withValue(float value)
Return (nullable)
value , converted to a nullable float . |
public static boolean equal(java.lang.Float left, java.lang.Float right)
Return true
if left == right
, otherwise false
.
left
- (nullable) Left operand.right
- (nullable) Right operand.true
if left == right
, otherwise false
.public static float getValue(java.lang.Float value)
Return non-null
value.
NullValueException
if value
is null
.
value
- (nullable) Nullable value.public static boolean hasValue(java.lang.Float left, float right)
Return true
if left == right
, otherwise false
.
left
- (nullable) Left operand.right
- Right operand.true
if left == right
, otherwise false
.public static boolean isNull(java.lang.Float value)
Return true
if value
is null
, otherwise false
.
value
- (nullable) Argument value.true
if value
is null
, otherwise false
.public static boolean notEqual(java.lang.Float left, java.lang.Float right)
Return true
if left != right
, otherwise false
.
left
- (nullable) Left operand.right
- (nullable) Right operand.true
if left != right
, otherwise false
.public static boolean notNull(java.lang.Float value)
Return true
if value
is not null
, otherwise false
.
value
- (nullable) Argument value.true
if value
is not null
, otherwise false
.public static java.lang.Float nullValue()
Return (nullable) The null
float
value.
null
float
value.public static java.lang.String toString(java.lang.Float value)
Return "null" if value
is null
, otherwise value.toString()
.
value
- (nullable) Argument value.value
is null
, otherwise value.toString()
.public static java.lang.Float withValue(float value)
Return (nullable) value
, converted to a nullable float
.
value
- Argument value.value
, converted to a nullable float
.