task4/solution13/src/org/apidesign/apifest08/currency/IExchangeRateEngine.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sat, 11 Oct 2008 23:38:46 +0200
changeset 61 58ec6da75f6f
parent 58 task3/solution13/src/org/apidesign/apifest08/currency/IExchangeRateEngine.java@07c16ec15a25
permissions -rw-r--r--
Copying structure for task4
     1 package org.apidesign.apifest08.currency;
     2 
     3 /**
     4  * Interface for exchange rate engine.
     5  * 
     6  * @author arnostvalicek
     7  */
     8 public interface IExchangeRateEngine {
     9     
    10     /**
    11      * Get exchange rate for conversion from <code>fromCurrency</code> to <code>toCurrency</code>.
    12      * 
    13      * @param fromCurrency From currency.
    14      * @param toCurrency To currency.
    15      * @return Returns <code>ExchangeRate</code> if exchange rate is known or <code>null</code> if exchanger rate is not known.
    16      */
    17     public ExchangeRate getExchangeRate(ConvertorCurrency fromCurrency, ConvertorCurrency toCurrency);
    18 }