org.jscience.economics.money
Interface ChangeSource

All Known Implementing Classes:
Bank, OandaChangeSource, YahooChangeSource

public interface ChangeSource

A class representing a currency conveter.


Method Summary
 float getConverted(float amount, Currency source, Currency target)
          public Money convert(Money source, Currency target) {

return new Money(getConverted(source.getAmount(), source.getCurrency(), target), target);

}

 

Method Detail

getConverted

float getConverted(float amount,
                   Currency source,
                   Currency target)
                   throws UnavailableDataException
public Money convert(Money source, Currency target) {

return new Money(getConverted(source.getAmount(), source.getCurrency(), target), target);

}

Throws:
UnavailableDataException