currency
Class Currency

java.lang.Object
  extended by currency.Currency

public class Currency
extends java.lang.Object

Encapsulates information about a currency. (Currency can be extended with additional information like time, devisa values etc.)


Constructor Summary
Currency()
          Default constructor
Currency(Currency toCopy)
          Copy constructor
Currency(java.lang.String bank, java.lang.String name)
          Constructor
 
Method Summary
 java.lang.String getBank()
           
 float getBuy()
           
 java.lang.String getName()
           
 float getSale()
           
 boolean isSet()
           
 void setBuy(float buy)
           
 void setSale(float sale)
           
 java.lang.String toString()
          Creates a string from the actual currency
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Currency

public Currency()
Default constructor


Currency

public Currency(java.lang.String bank,
                java.lang.String name)
         throws CurrencyException
Constructor

Throws:
CurrencyException

Currency

public Currency(Currency toCopy)
Copy constructor

Method Detail

getBank

public java.lang.String getBank()

getBuy

public float getBuy()

getName

public java.lang.String getName()

getSale

public float getSale()

setBuy

public void setBuy(float buy)

setSale

public void setSale(float sale)

isSet

public boolean isSet()

toString

public java.lang.String toString()
Creates a string from the actual currency

Overrides:
toString in class java.lang.Object