Interface CurrencyConverter
- All Known Implementing Classes:
PolygonCurrencyConverter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Converts currencies between themselve
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(CurrencyDesignation from, CurrencyDesignation to) How much of the {to currency} can we buy for 1 {from currency}
-
Method Details
-
convert
How much of the {to currency} can we buy for 1 {from currency}- Parameters:
from
- Currency we sellto
- Currency we buy- Returns:
- exchange rate
-