1 package org.apidesign.apifest08.currency;
3 import java.math.BigDecimal;
4 import java.util.Currency;
7 * Money representation. Default implementation {@link MoneyImpl} is provided. This interface can
8 * be implemented by a DTO used in client application.
13 * Whether we need such interface depends on the context. I can imagine than in a desktop application this interface
14 * would be useless, Money could be a class. In J2EE environment it can be useful.
16 public interface Money {
22 public BigDecimal getAmount();
27 public Currency getCurrency();