To check if a money amount is a credit, a debit or zero, use predicates:
Money.isNegative — returns true only if amount is less than 0.
Money.isNegative
true
0
Money.isPositive — returns true only if amount is greater than 0.
Money.isPositive
Money.isZero — returns true only if amount is 0.
Money.isZero
Last updated 10 months ago
Was this helpful?