junit.samples.money
インタフェース IMoney

既知の実装クラスの一覧:
Money

public interface IMoney

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.
 

メソッドの詳細

add

public IMoney add(IMoney m)
Adds a money to this money.


addMoney

public IMoney addMoney(Money m)
Adds a simple Money to this money. This is a helper method for implementing double dispatch


addMoneyBag

public IMoney addMoneyBag(junit.samples.money.MoneyBag s)
Adds a MoneyBag to this money. This is a helper method for implementing double dispatch


isZero

public boolean isZero()
Tests whether this money is zero


multiply

public IMoney multiply(int factor)
Multiplies a money by the given factor.


negate

public IMoney negate()
Negates this money.


subtract

public IMoney subtract(IMoney m)
Subtracts a money from this money.


appendTo

public void appendTo(junit.samples.money.MoneyBag m)
Append this to a MoneyBag m.



Copyright © 2001-2004 JUnit.org. All Rights Reserved.