All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.hiddewieringa.money.RoundingQueryExtensions.kt Maven / Gradle / Ivy

package nl.hiddewieringa.money

import javax.money.RoundingQuery
import javax.money.RoundingQueryBuilder

/**
 * @see RoundingQueryBuilder.of
 */
fun roundingQuery(init: RoundingQueryBuilder.() -> Unit = {}): RoundingQuery =
    RoundingQueryBuilder
        .of()
        .apply(init)
        .build()

/**
 * @see RoundingQueryBuilder.of
 */
fun roundingQuery(roundingQuery: RoundingQuery, init: RoundingQueryBuilder.() -> Unit = {}): RoundingQuery =
    RoundingQueryBuilder
        .of(roundingQuery)
        .apply(init)
        .build()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy