task4/solution13/src/org/apidesign/apifest08/currency/IExchangeRateEngine.java
changeset 61 58ec6da75f6f
parent 58 07c16ec15a25
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/task4/solution13/src/org/apidesign/apifest08/currency/IExchangeRateEngine.java	Sat Oct 11 23:38:46 2008 +0200
     1.3 @@ -0,0 +1,18 @@
     1.4 +package org.apidesign.apifest08.currency;
     1.5 +
     1.6 +/**
     1.7 + * Interface for exchange rate engine.
     1.8 + * 
     1.9 + * @author arnostvalicek
    1.10 + */
    1.11 +public interface IExchangeRateEngine {
    1.12 +    
    1.13 +    /**
    1.14 +     * Get exchange rate for conversion from <code>fromCurrency</code> to <code>toCurrency</code>.
    1.15 +     * 
    1.16 +     * @param fromCurrency From currency.
    1.17 +     * @param toCurrency To currency.
    1.18 +     * @return Returns <code>ExchangeRate</code> if exchange rate is known or <code>null</code> if exchanger rate is not known.
    1.19 +     */
    1.20 +    public ExchangeRate getExchangeRate(ConvertorCurrency fromCurrency, ConvertorCurrency toCurrency);
    1.21 +}