7 lines
250 B
Kotlin
7 lines
250 B
Kotlin
package com.cubetiqs.money
|
|
|
|
fun StdMoney.exchangeTo(currency: String): StdMoney {
|
|
return MoneyExchangeUtils.exchange(this, currency)
|
|
}
|
|
|
|
fun StdMoney.isMatchedCurrency(currency: String) = this.getMoneyCurrency().equals(currency, ignoreCase = true) |