Interface HighPrecisionMoney

All Superinterfaces:
Comparable<javax.money.MonetaryAmount>, javax.money.CurrencySupplier, javax.money.MonetaryAmount, MonetaryAmountConvertable, Money, javax.money.NumberSupplier, TypedMoney
All Known Implementing Classes:
HighPrecisionMoneyImpl

public interface HighPrecisionMoney extends TypedMoney

Money object that stores an amount of a fraction of the smallest indivisible unit of the specified currency.


Example to create an instance using the builder pattern

     HighPrecisionMoney highPrecisionMoney = HighPrecisionMoney.builder()
             .centAmount(0.3)
             .currencyCode("{currencyCode}")
             .fractionDigits(0.3)
             .preciseAmount(0.3)
             .build()