japod@55: package org.apidesign.apifest08.currency; japod@55: japod@55: import java.util.Currency; japod@55: japod@55: japod@55: /** japod@55: * Used to look up the exchange rate between two currencies. japod@55: * japod@55: * @author D'Arcy Smith japod@55: * @version 1.0 japod@55: */ japod@55: public interface ExchangeRateFinder japod@55: { japod@55: /** japod@55: * Find the exchange rate between two currencies. japod@55: * japod@55: * @param a the currency to convert from. japod@55: * @param b the currency to convert to. japod@55: * @return the exchange rate for conversions between the two currencies. japod@55: */ japod@55: ExchangeRate findRate(Currency a, Currency b); japod@55: }