Java Utililty Methods BigDecimal Value Check

List of utility methods to do BigDecimal Value Check

Description

The list of methods to do BigDecimal Value Check are organized into topic(s).

Method

booleanisNegative(BigDecimal inValue)
is Negative
return inValue != null && BigDecimal.ZERO.compareTo(inValue) > 0;
booleanisNotNullOrZero(final BigDecimal number)
is Not Null Or Zero
return number != null && !BigDecimal.ZERO.equals(number);
booleanisNotSameAbsValue(final BigDecimal v1, final BigDecimal v2)
is Not Same Abs Value
return !isSameAbsValue(v1, v2);
booleanisNotZero(final BigDecimal value)
is Not Zero
return !isZeroOrNull(value);
booleanisNotZeroPositive(BigDecimal value)
Return true if value is greater than zero.
return value != null && value.compareTo(BigDecimal.ZERO) > 0;
booleanisNull(BigDecimal bdg)
is Null
return bdg == null;
booleanisNull(final BigDecimal s)
is Null
return ((s == null) || (s.compareTo(NULL_BD) == 0));
booleanisNullOrZero(BigDecimal number)
Utility function to check if the BigDecimal value is null or zero.
boolean isBigDecimalValueNullOrZero = false;
if (number == null)
    isBigDecimalValueNullOrZero = true;
else if (number != null && number.compareTo(BigDecimal.ZERO) == 0)
    isBigDecimalValueNullOrZero = true;
return isBigDecimalValueNullOrZero;
booleanisNullOrZero(BigDecimal value)
Kiem tra Bigdecimal bi null hoac zero
return (value == null || value.equals(BigDecimal.ZERO));
booleanisParseableBigDecimal(String string)
is Parseable Big Decimal
return parseBigDecimal(string) != null;