1.1 --- a/task4/solution02/src/org/apidesign/apifest08/currency/Money.java Fri Oct 17 17:40:14 2008 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,29 +0,0 @@
1.4 -package org.apidesign.apifest08.currency;
1.5 -
1.6 -import java.math.BigDecimal;
1.7 -import java.util.Currency;
1.8 -
1.9 -/**
1.10 - * Money representation. Default implementation {@link MoneyImpl} is provided. This interface can
1.11 - * be implemented by a DTO used in client application.
1.12 - * @author lukas
1.13 - *
1.14 - */
1.15 -/*
1.16 - * Whether we need such interface depends on the context. I can imagine than in a desktop application this interface
1.17 - * would be useless, Money could be a class. In J2EE environment it can be useful.
1.18 - */
1.19 -public interface Money {
1.20 -
1.21 - /**
1.22 - * Returns amount.
1.23 - * @return
1.24 - */
1.25 - public BigDecimal getAmount();
1.26 -
1.27 - /**
1.28 - * Returns currency.
1.29 - */
1.30 - public Currency getCurrency();
1.31 -
1.32 -}
1.33 \ No newline at end of file