List of utility methods to do BigDecimal Value Check
boolean | isZero(BigDecimal bd) is Zero if (bd == null) { return true; return isZero(bd.doubleValue()); |
Boolean | isZero(BigDecimal d) is Zero return d.equals(BigDecimal.ZERO);
|
boolean | isZero(BigDecimal decimal) is Zero return decimal.compareTo(BigDecimal.ZERO) == 0;
|
boolean | isZero(BigDecimal inValue) is Zero return inValue != null && BigDecimal.ZERO.compareTo(inValue) == 0;
|
boolean | isZero(final BigDecimal b) Null save comparison against BigDecimal#ZERO . if (b != null && b.equals(ZERO)) { return true; } else { return false; |
boolean | isZero(final BigDecimal value) is Zero return value != null && value.signum() == 0;
|
boolean | isZeroOrNull(final BigDecimal value) is Zero Or Null return (value == null || value.compareTo(BigDecimal.ZERO) == 0);
|