author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Sat, 11 Oct 2008 23:38:46 +0200 | |
changeset 61 | 58ec6da75f6f |
parent 55 | task3/solution04/src/org/apidesign/apifest08/currency/ExchangeRateFinder.java@14e78f48ac2b |
permissions | -rw-r--r-- |
japod@55 | 1 |
package org.apidesign.apifest08.currency; |
japod@55 | 2 |
|
japod@55 | 3 |
import java.util.Currency; |
japod@55 | 4 |
|
japod@55 | 5 |
|
japod@55 | 6 |
/** |
japod@55 | 7 |
* Used to look up the exchange rate between two currencies. |
japod@55 | 8 |
* |
japod@55 | 9 |
* @author D'Arcy Smith |
japod@55 | 10 |
* @version 1.0 |
japod@55 | 11 |
*/ |
japod@55 | 12 |
public interface ExchangeRateFinder |
japod@55 | 13 |
{ |
japod@55 | 14 |
/** |
japod@55 | 15 |
* Find the exchange rate between two currencies. |
japod@55 | 16 |
* |
japod@55 | 17 |
* @param a the currency to convert from. |
japod@55 | 18 |
* @param b the currency to convert to. |
japod@55 | 19 |
* @return the exchange rate for conversions between the two currencies. |
japod@55 | 20 |
*/ |
japod@55 | 21 |
ExchangeRate findRate(Currency a, Currency b); |
japod@55 | 22 |
} |