package com.mygeopay.core.util; import com.mygeopay.core.coins.CoinType; import com.mygeopay.core.coins.Value; import com.mygeopay.core.coins.ValueType; import org.bitcoinj.core.Coin; import java.io.Serializable; /** * @author John L. Jegutanis */ public interface ExchangeRate extends Serializable { Value convert(CoinType type, Coin coin); /** * Convert from one value to another */ Value convert(Value convertingValue); ValueType getOtherType(ValueType type); ValueType getSourceType(); ValueType getDestinationType(); boolean canConvert(ValueType type1, ValueType type2); }