task4/solution04/src/org/apidesign/apifest08/currency/ExchangeRateFinder.java
changeset 61 58ec6da75f6f
parent 55 14e78f48ac2b
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/task4/solution04/src/org/apidesign/apifest08/currency/ExchangeRateFinder.java	Sat Oct 11 23:38:46 2008 +0200
     1.3 @@ -0,0 +1,22 @@
     1.4 +package org.apidesign.apifest08.currency;
     1.5 +
     1.6 +import java.util.Currency;
     1.7 +
     1.8 +
     1.9 +/**
    1.10 + * Used to look up the exchange rate between two currencies.
    1.11 + *
    1.12 + * @author D'Arcy Smith
    1.13 + * @version 1.0
    1.14 + */
    1.15 +public interface ExchangeRateFinder
    1.16 +{
    1.17 +    /**
    1.18 +     * Find the exchange rate between two currencies.
    1.19 +     *
    1.20 +     * @param a the currency to convert from.
    1.21 +     * @param b the currency to convert to.
    1.22 +     * @return the exchange rate for conversions between the two currencies.
    1.23 +     */
    1.24 +    ExchangeRate findRate(Currency a, Currency b);
    1.25 +}