nl.hiddewieringa.money.RoundingContextExtensions.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.RoundingContext
import javax.money.RoundingContextBuilder
/**
* @see RoundingContextBuilder.of
*/
fun roundingContext(provider: String, roundingId: String, init: RoundingContextBuilder.() -> Unit = {}): RoundingContext =
RoundingContextBuilder
.of(provider, roundingId)
.apply(init)
.build()
/**
* @see RoundingContextBuilder.of
*/
fun roundingContext(roundingContext: RoundingContext, init: RoundingContextBuilder.() -> Unit = {}): RoundingContext =
RoundingContextBuilder
.of(roundingContext)
.apply(init)
.build()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy