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.MonetaryAmountDecimalFormatBuilderNumberFormat#getCurrencyInstance()}public static MonetaryAmountDecimalFormatBuilder of(Locale locale)
MonetaryAmountDecimalFormatBuilder with Locale set from parameter.locale - MonetaryAmountDecimalFormatBuilderNumberFormat#getCurrencyInstance(Locale)}public static MonetaryAmountDecimalFormatBuilder of(String pattern)
MonetaryAmountDecimalFormatBuilder with default Locale and pattern to format the MonetaryAmount.pattern - MonetaryAmountDecimalFormatBuilderDecimalFormat},
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 - MonetaryAmountDecimalFormatBuilderDecimalFormat},
DecimalFormat#DecimalFormat(String)}public MonetaryAmountDecimalFormatBuilder withCurrencyUnit(javax.money.CurrencyUnit currencyUnit)
CurrencyUnitcurrencyUnit - MonetaryAmountDecimalFormatBuilderpublic MonetaryAmountDecimalFormatBuilder withProducer(MonetaryAmountProducer producer)
MonetaryAmountProducerproducer - MonetaryAmountDecimalFormatBuilderpublic 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 LocaleMonetaryAmountFormatCopyright © 2012-2016 JavaMoney. All Rights Reserved.