author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 25 Oct 2008 20:53:00 +0200 | |
changeset 84 | 2ae6e4aa7aef |
parent 58 | 07c16ec15a25 |
permissions | -rw-r--r-- |
japod@58 | 1 |
package org.apidesign.apifest08.currency; |
japod@58 | 2 |
|
japod@58 | 3 |
/** |
japod@58 | 4 |
* Interface for exchange rate engine. |
japod@58 | 5 |
* |
japod@58 | 6 |
* @author arnostvalicek |
japod@58 | 7 |
*/ |
japod@58 | 8 |
public interface IExchangeRateEngine { |
japod@58 | 9 |
|
japod@58 | 10 |
/** |
japod@58 | 11 |
* Get exchange rate for conversion from <code>fromCurrency</code> to <code>toCurrency</code>. |
japod@58 | 12 |
* |
japod@58 | 13 |
* @param fromCurrency From currency. |
japod@58 | 14 |
* @param toCurrency To currency. |
japod@58 | 15 |
* @return Returns <code>ExchangeRate</code> if exchange rate is known or <code>null</code> if exchanger rate is not known. |
japod@58 | 16 |
*/ |
japod@58 | 17 |
public ExchangeRate getExchangeRate(ConvertorCurrency fromCurrency, ConvertorCurrency toCurrency); |
japod@58 | 18 |
} |