author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Fri, 17 Oct 2008 17:31:48 +0200 | |
changeset 63 | 20d332739f60 |
permissions | -rw-r--r-- |
jaroslav@63 | 1 |
package org.apidesign.apifest08.currency; |
jaroslav@63 | 2 |
|
jaroslav@63 | 3 |
import java.util.Date; |
jaroslav@63 | 4 |
|
jaroslav@63 | 5 |
/** |
jaroslav@63 | 6 |
* Interface for exchange rate engine using dates. |
jaroslav@63 | 7 |
* |
jaroslav@63 | 8 |
* @author arnostvalicek |
jaroslav@63 | 9 |
*/ |
jaroslav@63 | 10 |
public interface IDateExchangeRateEngine { |
jaroslav@63 | 11 |
/** |
jaroslav@63 | 12 |
* Get exchange rate for conversion from <code>fromCurrency</code> to <code>toCurrency</code> at <code>date</code>. |
jaroslav@63 | 13 |
* |
jaroslav@63 | 14 |
* @param fromCurrency From currency. |
jaroslav@63 | 15 |
* @param toCurrency To currency. |
jaroslav@63 | 16 |
* @param date Conversion date. |
jaroslav@63 | 17 |
* @return Returns <code>ExchangeRate</code> if exchange rate is known or <code>null</code> if exchanger rate is not known. |
jaroslav@63 | 18 |
*/ |
jaroslav@63 | 19 |
public ExchangeRate getExchangeRate(ConvertorCurrency fromCurrency, ConvertorCurrency toCurrency, Date date); |
jaroslav@63 | 20 |
|
jaroslav@63 | 21 |
} |