nl.hiddewieringa.money.CurrencyContextExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of money-kotlin Show documentation
Show all versions of money-kotlin Show documentation
Kotlin extensions for javax.money (Moneta) JSR 354
The newest version!
package nl.hiddewieringa.money
import javax.money.CurrencyContext
import javax.money.CurrencyContextBuilder
/**
* @see CurrencyContextBuilder.of
*/
fun currencyContext(provider: String, init: CurrencyContextBuilder.() -> Unit = {}): CurrencyContext =
CurrencyContextBuilder
.of(provider)
.apply(init)
.build()
/**
* @see CurrencyContextBuilder.of
*/
fun currencyContext(currencyContext: CurrencyContext, init: CurrencyContextBuilder.() -> Unit = {}): CurrencyContext =
CurrencyContextBuilder
.of(currencyContext)
.apply(init)
.build()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy