|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMoney
The common interface for simple Monies and MoneyBags
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(junit.samples.money.MoneyBag s)
Adds a MoneyBag to this money. |
void |
appendTo(junit.samples.money.MoneyBag m)
Append this to a MoneyBag m. |
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. |
Method Detail |
---|
IMoney add(IMoney m)
IMoney addMoney(Money m)
IMoney addMoneyBag(junit.samples.money.MoneyBag s)
boolean isZero()
IMoney multiply(int factor)
IMoney negate()
IMoney subtract(IMoney m)
void appendTo(junit.samples.money.MoneyBag m)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |