|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
The common interface for simple Monies and MoneyBags
メソッドの概要 | |
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. |
メソッドの詳細 |
public IMoney add(IMoney m)
public IMoney addMoney(Money m)
public IMoney addMoneyBag(junit.samples.money.MoneyBag s)
public boolean isZero()
public IMoney multiply(int factor)
public IMoney negate()
public IMoney subtract(IMoney m)
public void appendTo(junit.samples.money.MoneyBag m)
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |