public class MonetaryAmountDecimalFormatBuilder extends Object
MonetaryAmountFormat.newInstance(),
of(java.util.Locale)public static MonetaryAmountDecimalFormatBuilder newInstance()
MonetaryAmountDecimalFormatBuilder with default Locale.MonetaryAmountDecimalFormatBuilderNumberFormat.getCurrencyInstance()public static MonetaryAmountDecimalFormatBuilder of(Locale locale)
MonetaryAmountDecimalFormatBuilder with Locale set from parameter.locale - the target localeMonetaryAmountDecimalFormatBuilderNumberFormat.getCurrencyInstance(Locale)public static MonetaryAmountDecimalFormatBuilder of(String pattern)
MonetaryAmountDecimalFormatBuilder with default Locale and pattern to format the MonetaryAmount.pattern - the pattern to be used.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 - the pattern to be used.locale - the target localeMonetaryAmountDecimalFormatBuilderDecimalFormat,
DecimalFormat.DecimalFormat(String)public MonetaryAmountDecimalFormatBuilder withCurrencyUnit(CurrencyUnit currencyUnit)
CurrencyUnitcurrencyUnit - the target currencyMonetaryAmountDecimalFormatBuilderpublic MonetaryAmountDecimalFormatBuilder withProducer(MonetaryAmountProducer producer)
MonetaryAmountProducerproducer - the producerMonetaryAmountDecimalFormatBuilderpublic 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–2020 JavaMoney. All rights reserved.