You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Compares two instances of {@link MonetaryAmount}, hereby ignoring non significant trailing
* zeroes and different numeric capabilities.
*
* @param amount the {@link MonetaryAmount} to be compared with this instance.
* @return {@code true} if {@code amount < this}.
* @throws MonetaryException if the amount's currency is not equal to the currency of this instance.
*/
boolean isLessThan(MonetaryAmount amount);
The java doc says that it returns true if amount < this, but every implementation (and a personal reading of this.isLessThan(amount) seems like it should) returns true if this < amount.
Ex.
The java doc says that it returns true if
amount < this
, but every implementation (and a personal reading ofthis.isLessThan(amount)
seems like it should) returns true ifthis < amount
.Ex with the reference moneta implementation
The text was updated successfully, but these errors were encountered: