NumberFormatBuilder

Builder for Number Format expression.

class NumberFormatBuilder(input: Expression) : Expression.Builder

Parameters

input

the input as a number

Constructors

NumberFormatBuilder
Link copied to clipboard

the input as a number

fun NumberFormatBuilder(input: Expression)

Functions

build
Link copied to clipboard

Build the number-format expression.

open override fun build(): Expression
currency
Link copied to clipboard

Number formatting option for specifying the currency to use, an ISO 4217 code.

fun currency(currency: Expression): Expression.NumberFormatBuilder
fun currency(block: Expression.ExpressionBuilder.() -> Unit): Expression.NumberFormatBuilder
fun currency(currency: String): Expression.NumberFormatBuilder
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
locale
Link copied to clipboard

Number formatting option for specifying the locale to use, as a BCP 47 language tag.

fun locale(locale: Expression): Expression.NumberFormatBuilder
fun locale(block: Expression.ExpressionBuilder.() -> Unit): Expression.NumberFormatBuilder
fun locale(locale: String): Expression.NumberFormatBuilder
maxFractionDigits
Link copied to clipboard

Number formatting options for specifying the minimum fraction digits to include.

fun maxFractionDigits(maxFractionDigits: Expression): Expression.NumberFormatBuilder
fun maxFractionDigits(maxFractionDigits: Int): Expression.NumberFormatBuilder
minFractionDigits
Link copied to clipboard

Number formatting options for specifying the minimum fraction digits to include.

fun minFractionDigits(minFractionDigits: Expression): Expression.NumberFormatBuilder
fun minFractionDigits(minFractionDigits: Int): Expression.NumberFormatBuilder
toString
Link copied to clipboard
open override fun toString(): String