|
|
@ -13,6 +13,7 @@ class CurrencySet private constructor(private val currencies: Array<Currency>) {
|
|
|
|
values[currency] = value
|
|
|
|
values[currency] = value
|
|
|
|
modBaseValue -= currency.transferFrom(value)
|
|
|
|
modBaseValue -= currency.transferFrom(value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//das ist ein sinnloser kommentar
|
|
|
|
if (modBaseValue != 0)
|
|
|
|
if (modBaseValue != 0)
|
|
|
|
throw RuntimeException() // TODO Change to ValueNotRepresentableException
|
|
|
|
throw RuntimeException() // TODO Change to ValueNotRepresentableException
|
|
|
|
return values
|
|
|
|
return values
|
|
|
|