1.1 --- a/task4/solution14/src/org/apidesign/apifest08/currency/CurrencyRateFactory.java Sat Oct 11 23:38:46 2008 +0200
1.2 +++ b/task4/solution14/src/org/apidesign/apifest08/currency/CurrencyRateFactory.java Fri Oct 17 17:35:52 2008 +0200
1.3 @@ -21,5 +21,17 @@
1.4 public CurrencyRate createCurrencyRate(final String currency1, final String currency2, double amount1, double amount2) {
1.5 return new CurrencyRateImpl(currency1, currency2, new Rate(amount1, amount2));
1.6 }
1.7 +
1.8 + public TimeLimitedCurrencyRate createCurrencyRateTimeLimited(final String currency1, final String currency2, final Rate rate, long fromTime, long toTime) {
1.9 + return new CurrencyRateImpl(currency1, currency2, rate, fromTime, toTime);
1.10 + }
1.11 +
1.12 + public TimeLimitedCurrencyRate createCurrencyRateTimeLimited(final String currency1, final String currency2, int amount1, int amount2, long fromTime, long toTime) {
1.13 + return new CurrencyRateImpl(currency1, currency2, new Rate(amount1, amount2), fromTime, toTime);
1.14 + }
1.15 +
1.16 + public TimeLimitedCurrencyRate createCurrencyRateTimeLimited(final String currency1, final String currency2, double amount1, double amount2, long fromTime, long toTime) {
1.17 + return new CurrencyRateImpl(currency1, currency2, new Rate(amount1, amount2), fromTime, toTime);
1.18 + }
1.19
1.20 }