org.jscience.economics.money
Class Wallet

java.lang.Object
  extended by org.jscience.economics.money.Wallet

public final class Wallet
extends java.lang.Object

A class representing a wallet (a store of money). It has no value by itself. This can be an electronic wallet. Yet this is only very basic here.


Constructor Summary
Wallet()
          Creates a new Wallet object.
 
Method Summary
 void addValue(Amount<Money> amount)
          DOCUMENT ME!
 java.util.Vector getContents()
          DOCUMENT ME!
 Amount<Money> getValue(Bank bank, Currency resultCurrency)
          DOCUMENT ME!
 void removeValue(Amount<Money> amount)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wallet

public Wallet()
Creates a new Wallet object.

Method Detail

getContents

public final java.util.Vector getContents()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getValue

public final Amount<Money> getValue(Bank bank,
                                    Currency resultCurrency)
DOCUMENT ME!

Parameters:
bank - DOCUMENT ME!
resultCurrency - DOCUMENT ME!
Returns:
DOCUMENT ME!

addValue

public final void addValue(Amount<Money> amount)
DOCUMENT ME!

Parameters:
amount - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

removeValue

public final void removeValue(Amount<Money> amount)
DOCUMENT ME!

Parameters:
amount - DOCUMENT ME!