task4/solution04/src/org/apidesign/apifest08/currency/ExchangeRateFinder.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 25 Oct 2008 20:53:00 +0200
changeset 84 2ae6e4aa7aef
parent 55 14e78f48ac2b
permissions -rw-r--r--
Solutions by Petr Smid
     1 package org.apidesign.apifest08.currency;
     2 
     3 import java.util.Currency;
     4 
     5 
     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 }