use of javax.money.format.AmountFormatQueryBuilder in project bookJava11eDeitel by diodoros87.
the class SimpleCurrencyConverterView method getMonetaryAmountFormat.
private static MonetaryAmountFormat getMonetaryAmountFormat() {
AmountFormatQueryBuilder builder = AmountFormatQueryBuilder.of(LOCALE_FORMAT);
builder.set(SYMBOL);
builder.set(PATTERN, " ยค,##0.00");
AmountFormatQuery query = builder.build();
MonetaryAmountFormat monetaryAmountFormat = MonetaryFormats.getAmountFormat(query);
return monetaryAmountFormat;
}
Aggregations