Class Money


  • public class Money
    extends Object
    Holds amount of money with associated currency.

    Consider more comprehensive implementation using one of:

    • http://joda-money.sourceforge.net/
    • http://java.net/projects/javamoney
    • Constructor Detail

      • Money

        public Money()
    • Method Detail

      • setAmount

        public void setAmount​(BigDecimal amount)
      • getCurrencyCode

        public String getCurrencyCode()
      • setCurrencyCode

        public void setCurrencyCode​(String currencyCode)
      • convertPrice

        public static Money convertPrice​(String rawPrice,
                                         String rawCurrency)