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