public class MonetaryAmountDecimalFormatBuilder extends Object
MonetaryAmountFormat
.MonetaryAmountDecimalFormatBuilder#newInstance}
,
MonetaryAmountDecimalFormatBuilder#of}
Modifier and Type | Method and Description |
---|---|
javax.money.format.MonetaryAmountFormat |
build()
Creates the
MonetaryAmountFormat
If @{link Locale} didn't set the default value is Locale.getDefault()
If @{link MonetaryAmountProducer} didn't set the default value is MoneyProducer
If @{link CurrencyUnit} didn't set the default value is a currency from Locale |
static MonetaryAmountDecimalFormatBuilder |
newInstance()
Creates a new instance of
MonetaryAmountDecimalFormatBuilder with default Locale . |
static MonetaryAmountDecimalFormatBuilder |
of(Locale locale)
Creates a new instance of
MonetaryAmountDecimalFormatBuilder with Locale set from parameter. |
static MonetaryAmountDecimalFormatBuilder |
of(String pattern)
Creates a new instance of
MonetaryAmountDecimalFormatBuilder with default Locale and pattern to format the MonetaryAmount . |
static MonetaryAmountDecimalFormatBuilder |
of(String pattern,
Locale locale)
Creates a new instance of
MonetaryAmountDecimalFormatBuilder with Locale set from parameter and pattern to format the MonetaryAmount . |
MonetaryAmountDecimalFormatBuilder |
withCurrencyUnit(javax.money.CurrencyUnit currencyUnit)
Sets the
CurrencyUnit |
MonetaryAmountDecimalFormatBuilder |
withProducer(MonetaryAmountProducer producer)
Sets the
MonetaryAmountProducer |
public static MonetaryAmountDecimalFormatBuilder newInstance()
MonetaryAmountDecimalFormatBuilder
with default Locale
.MonetaryAmountDecimalFormatBuilder
NumberFormat#getCurrencyInstance()}
public static MonetaryAmountDecimalFormatBuilder of(Locale locale)
MonetaryAmountDecimalFormatBuilder
with Locale
set from parameter.locale
- MonetaryAmountDecimalFormatBuilder
NumberFormat#getCurrencyInstance(Locale)}
public static MonetaryAmountDecimalFormatBuilder of(String pattern)
MonetaryAmountDecimalFormatBuilder
with default Locale
and pattern to format the MonetaryAmount
.pattern
- MonetaryAmountDecimalFormatBuilder
DecimalFormat}
,
DecimalFormat#DecimalFormat(String)}
public static MonetaryAmountDecimalFormatBuilder of(String pattern, Locale locale)
MonetaryAmountDecimalFormatBuilder
with Locale
set from parameter and pattern to format the MonetaryAmount
.pattern
- locale
- MonetaryAmountDecimalFormatBuilder
DecimalFormat}
,
DecimalFormat#DecimalFormat(String)}
public MonetaryAmountDecimalFormatBuilder withCurrencyUnit(javax.money.CurrencyUnit currencyUnit)
CurrencyUnit
currencyUnit
- MonetaryAmountDecimalFormatBuilder
public MonetaryAmountDecimalFormatBuilder withProducer(MonetaryAmountProducer producer)
MonetaryAmountProducer
producer
- MonetaryAmountDecimalFormatBuilder
public javax.money.format.MonetaryAmountFormat build()
MonetaryAmountFormat
If @{link Locale} didn't set the default value is Locale.getDefault()
If @{link MonetaryAmountProducer} didn't set the default value is MoneyProducer
If @{link CurrencyUnit} didn't set the default value is a currency from Locale
MonetaryAmountFormat
Copyright © 2012-2016 JavaMoney. All Rights Reserved.