Money Interface
- public interface Money
extends Belonging
Represents money as value and currency
Related Topics
MoneyHome
-
All Known Implementing Classes
-
MoneyImpl, DescribedMoneyImpl, DescribedPriceImpl, PriceImpl
-
All Superinterfaces
-
Belonging, BusinessSmartComponent, Cloneable, Comparable, Serializable
-
All Known Subinterfaces
-
DescribedMoney, DescribedPrice, Price
getCurrency() Method
public String getCurrency()
Returns the currency of money
Returns
- currency.
getValue() Method
public double getValue()
Returns the value of money
Returns
- value.
setCurrency(String) Method
public void setCurrency(String currency)
throws InvalidArgumentException
Sets the currency of money
Parameters
-
currency
- currency to be set
Exceptions
-
InvalidArgumentException
setValue(double) Method
public void setValue(double value)
Sets the value of money
Parameters
-
value
- value to be set