|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjunit.samples.money.Money
A simple Money.
コンストラクタの概要 | |
Money(int amount,
java.lang.String currency)
Constructs a money from the given amount and currency. |
メソッドの概要 | |
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. |
int |
amount()
|
void |
appendTo(junit.samples.money.MoneyBag m)
Append this to a MoneyBag m. |
java.lang.String |
currency()
|
boolean |
equals(java.lang.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. |
java.lang.String |
toString()
|
クラス java.lang.Object から継承したメソッド |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public Money(int amount, java.lang.String currency)
メソッドの詳細 |
public IMoney add(IMoney m)
IMoney
内の add
public IMoney addMoney(Money m)
IMoney
の記述:
IMoney
内の addMoney
public IMoney addMoneyBag(junit.samples.money.MoneyBag s)
IMoney
の記述:
IMoney
内の addMoneyBag
public int amount()
public java.lang.String currency()
public boolean equals(java.lang.Object anObject)
public int hashCode()
public boolean isZero()
IMoney
の記述:
IMoney
内の isZero
public IMoney multiply(int factor)
IMoney
の記述:
IMoney
内の multiply
public IMoney negate()
IMoney
の記述:
IMoney
内の negate
public IMoney subtract(IMoney m)
IMoney
の記述:
IMoney
内の subtract
public java.lang.String toString()
public void appendTo(junit.samples.money.MoneyBag m)
IMoney
の記述:
IMoney
内の appendTo
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |