List of utility methods to do BigDecimal Value Check
boolean | isNegative(BigDecimal inValue) is Negative return inValue != null && BigDecimal.ZERO.compareTo(inValue) > 0;
|
boolean | isNotNullOrZero(final BigDecimal number) is Not Null Or Zero return number != null && !BigDecimal.ZERO.equals(number);
|
boolean | isNotSameAbsValue(final BigDecimal v1, final BigDecimal v2) is Not Same Abs Value return !isSameAbsValue(v1, v2);
|
boolean | isNotZero(final BigDecimal value) is Not Zero return !isZeroOrNull(value);
|
boolean | isNotZeroPositive(BigDecimal value) Return true if value is greater than zero.
return value != null && value.compareTo(BigDecimal.ZERO) > 0;
|
boolean | isNull(BigDecimal bdg) is Null return bdg == null;
|
boolean | isNull(final BigDecimal s) is Null return ((s == null) || (s.compareTo(NULL_BD) == 0));
|
boolean | isNullOrZero(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; |
boolean | isNullOrZero(BigDecimal value) Kiem tra Bigdecimal bi null hoac zero return (value == null || value.equals(BigDecimal.ZERO));
|
boolean | isParseableBigDecimal(String string) is Parseable Big Decimal return parseBigDecimal(string) != null;
|