author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 25 Oct 2008 20:53:00 +0200 | |
changeset 84 | 2ae6e4aa7aef |
parent 55 | 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 |
} |