public final class AmountFormatQuery extends AbstractQuery
MonetaryAmountFormat
. In general it is determined by the
implementation, what formats are provided. Nevertheless the following queries must be supported:
.DecimalFormat#getAvailableLocales()
.This class is immutable, thread-safe and serializable.
KEY_QUERY_PROVIDERS, KEY_QUERY_TARGET_TYPE, KEY_QUERY_TIMESTAMP
KEY_PROVIDER
Modifier and Type | Method and Description |
---|---|
String |
getFormatName()
Gets a style's id.
|
Locale |
getLocale()
Gets a Locale to be applied.
|
MonetaryAmountFactory |
getMonetaryAmountFactory()
Gets the
MonetaryAmountFactoryQuery to be used for accessing .MonetaryAmountFactory , when amount's are parsed. |
static AmountFormatQuery |
of(Locale locale,
String... providers)
Creates a simple format query based on a singlet Locale, similar to
(java.util.Locale) . |
AmountFormatQueryBuilder |
toBuilder()
Get a
AmountFormatQueryBuilder preinitialized with this context instance. |
getProviderNames, getTargetType
public String getFormatName()
public Locale getLocale()
public MonetaryAmountFactory getMonetaryAmountFactory()
MonetaryAmountFactoryQuery
to be used for accessing .MonetaryAmountFactory
, when amount's are parsed.null
.public static AmountFormatQuery of(Locale locale, String... providers)
(java.util.Locale)
.locale
- the target locale, not null.providers
- the providers to be used, not null.public AmountFormatQueryBuilder toBuilder()
AmountFormatQueryBuilder
preinitialized with this context instance.Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.