Class Money

java.lang.Object
com.labs64.netlicensing.domain.vo.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 Details

    • Money

      public Money()
  • Method Details

    • getAmount

      public BigDecimal getAmount()
    • 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)