==
) returns true
when both operands are in the same currency and have an equal amount.<
, <=
, >
, >=
operators, or the method compareTo()
from the interface Comparable<Money>
.compareTo()
can be used only between money values in the same currency. Runtime error will be thrown on any attempt to compare values in different currencies.