|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoney.Money
A simple Money.
Constructor Summary | |
Money(int amount,
String currency)
Constructs a money from the given amount and currency. |
Method Summary | |
IMoney |
add(IMoney m)
Adds a money to this money. |
IMoney |
addMoney(Money m)
Adds a simple Money to this money. |
IMoney |
addMoneyBag(MoneyBag s)
Adds a MoneyBag to this money. |
int |
amount()
|
String |
currency()
|
boolean |
equals(Object anObject)
|
int |
hashCode()
|
boolean |
isZero()
Tests whether this money is zero |
IMoney |
multiply(int factor)
Multiplies a money by the given factor. |
IMoney |
negate()
Negates this money. |
IMoney |
subtract(IMoney m)
Subtracts a money from this money. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Money(int amount, String currency)
Method Detail |
public IMoney add(IMoney m)
add
in interface IMoney
public IMoney addMoney(Money m)
IMoney
addMoney
in interface IMoney
public IMoney addMoneyBag(MoneyBag s)
IMoney
addMoneyBag
in interface IMoney
public int amount()
public String currency()
public boolean equals(Object anObject)
public int hashCode()
public boolean isZero()
IMoney
isZero
in interface IMoney
public IMoney multiply(int factor)
IMoney
multiply
in interface IMoney
public IMoney negate()
IMoney
negate
in interface IMoney
public IMoney subtract(IMoney m)
IMoney
subtract
in interface IMoney
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |