author | japod@localhost |
Sun, 28 Sep 2008 14:12:38 +0200 | |
changeset 6 | 97662396c0fd |
permissions | -rw-r--r-- |
japod@6 | 1 |
package org.apidesign.apifest08.currency; |
japod@6 | 2 |
|
japod@6 | 3 |
import java.math.BigDecimal; |
japod@6 | 4 |
|
japod@6 | 5 |
/** |
japod@6 | 6 |
* Provider for conversion constant from any source |
japod@6 | 7 |
* @author Ladislav Vitasek |
japod@6 | 8 |
*/ |
japod@6 | 9 |
public interface ConversionRatioProvider { |
japod@6 | 10 |
public BigDecimal getCurrency1ToCurrency2Constant() throws CannotProvideValueException; |
japod@6 | 11 |
public BigDecimal getCurrency2ToCurrency1Constant() throws CannotProvideValueException; |
japod@6 | 12 |
} |