Value Sign Predicates
To check if a money amount is a credit, a debit or zero, use predicates:
Money.isNegative
— returnstrue
only if amount is less than0
.Money.isPositive
— returnstrue
only if amount is greater than0
.Money.isZero
— returnstrue
only if amount is0
.
Last updated