1.1 --- a/task4/solution02/src/org/apidesign/apifest08/currency/Convertor.java Fri Oct 17 17:40:14 2008 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,18 +0,0 @@
1.4 -package org.apidesign.apifest08.currency;
1.5 -
1.6 -import java.util.Currency;
1.7 -
1.8 -
1.9 -/**
1.10 - * Converts currencies. To create an instance call {@link ConvertorFactory#createConvertor(Money, Money)}.
1.11 - */
1.12 -public interface Convertor {
1.13 - /**
1.14 - * Converts amount to its equivalent in the destination currency.
1.15 - * @param amount
1.16 - * @param destinationCurrency
1.17 - * @return
1.18 - * @throws IllegalArgumentException if currency of the amount is not supported or if it is not possible to convert it to the destination currency.
1.19 - */
1.20 - public Money convert(Money amount, Currency destinationCurrency) throws IllegalArgumentException;
1.21 -}