Overhaul Currency
After some discussion we came to the conclusion that Currency.rate
should be of type Double
instead of double
.
Additionally !4 (merged) brings up the question of implementing the interface Comparable
to facilitate more meaningful unit tests. (In this case we should probably also override equals()
and therefor hashCode()
for correctness though not required in practice.)
Edited by Rügamer Phillip Owen