code: @Override
      public int compareTo(MonetaryAmount o) {
          Objects.requireNonNull(o);
          int compare;
          if (currency.equals(o.getCurrency())) {
              compare = asNumberStripped().compareTo(RoundedMoney.from(o).asNumberStripped());
          } else {
              compare = currency.getCurrencyCode().compareTo(o.getCurrency().getCurrencyCode());
          }
          return compare;
      }
docs: /*
  @see java.lang.Comparable#compareTo(java.lang.Object)