Sambo Chea
31760ee901
But money object not full implementation yet, because we need the exchange and filter the object states for money
7 lines
300 B
Kotlin
7 lines
300 B
Kotlin
package com.cubetiqs.money
|
|
|
|
fun StdMoney.exchangeTo(currency: StdMoney.Currency): StdMoney {
|
|
return MoneyExchangeUtils.exchange(this, currency)
|
|
}
|
|
|
|
fun StdMoney.isMatchedCurrency(currency: StdMoney.Currency) = this.getMoneyCurrency().getCurrency().equals(currency.getCurrency(), ignoreCase = true) |