|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mov.util.ExchangeRate
public class ExchangeRate
An immutable representation of an Exchange Rate. An exchange rate is the conversion rate when converting one currency into another.
| Constructor Summary | |
|---|---|
ExchangeRate(TradingDate date,
Currency source,
Currency destination,
double rate)
Create a new exchange rate that converts the source currency into the destination currency. |
|
| Method Summary | |
|---|---|
TradingDate |
getDate()
Return the date of the exchange rate. |
Currency |
getDestinationCurrency()
Return the currency that this exchange rate is converting into. |
double |
getRate()
Return the exchange rate when converting between the two currencies. |
Currency |
getSourceCurrency()
Return the currency that this exchange rate is converting from. |
java.lang.String |
toString()
Return a string representation of this exchange rate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExchangeRate(TradingDate date,
Currency source,
Currency destination,
double rate)
date - the date of the exchange ratesource - the currency we are converting fromdestination - the currency we are converting torate - the exchange rate| Method Detail |
|---|
public TradingDate getDate()
public Currency getSourceCurrency()
public Currency getDestinationCurrency()
public double getRate()
public java.lang.String toString()
toString in class java.lang.Object
|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||