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