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-- |
1 package org.apidesign.apifest08.currency;
3 import java.util.Currency;
6 /**
7 * Used to look up the exchange rate between two currencies.
8 *
9 * @author D'Arcy Smith
10 * @version 1.0
11 */
12 public interface ExchangeRateFinder
13 {
14 /**
15 * Find the exchange rate between two currencies.
16 *
17 * @param a the currency to convert from.
18 * @param b the currency to convert to.
19 * @return the exchange rate for conversions between the two currencies.
20 */
21 ExchangeRate findRate(Currency a, Currency b);
22 }