List of utility methods to do BigDecimal Negate
BigDecimal | negate(BigDecimal amount) negate return !isZeroOrNull(amount) ? amount.negate() : amount;
|
BigDecimal | negate(BigDecimal decimal) Returns the negated value of the given decimal number. if (decimal == null) return null; return decimal.negate(); |
BigDecimal | negate(final BigDecimal value) Returns the negate of the value, handles null. return value != null ? value.negate() : null;
|
BigDecimal | negateIfTrue(final boolean condition, final BigDecimal value) Returns the negate of the value if condition is true, handles null. return condition ? negate(value) : value;
|
BigDecimal | negation(BigDecimal bigDecimal) negation if (bigDecimal == null) { return zeroBigDecimal(); return bigDecimal.negate(); |