public final class AmountFormatQueryBuilder extends AbstractQueryBuilder<AmountFormatQueryBuilder,AmountFormatQuery>
MonetaryAmountFormat
instances.
Note this class is NOT thread-safe.
Modifier and Type | Method and Description |
---|---|
AmountFormatQuery |
build()
Creates a new
AmountFormatQuery instance. |
static AmountFormatQueryBuilder |
of(AmountFormatQuery formatQuery)
Creates a new
AmountFormatQueryBuilder and initializes it with the values from {@code formatQuery. |
static AmountFormatQueryBuilder |
of(Locale locale)
Creates a new default
AmountFormatQueryBuilder for a formatter based on the
locale specific
defaults. |
static AmountFormatQueryBuilder |
of(String formatName)
Creates a new
AmountFormatQueryBuilder . |
AmountFormatQueryBuilder |
setFormatName(String formatName)
Sets a style's id.
|
AmountFormatQueryBuilder |
setLocale(Locale locale)
Sets a Locale to be applied.
|
AmountFormatQueryBuilder |
setMonetaryAmountFactory(MonetaryAmountFactory<?> monetaryFactory)
Sets the
MonetaryAmountFactory to be used to of amounts during parsing. |
AmountFormatQueryBuilder |
setMonetaryQuery(MonetaryAmountFactoryQuery monetaryQuery)
Sets the
MonetaryContext to be used, when amount's are parsed. |
set, setProviderName, setProviderNames, setProviderNames, setTargetType
importContext, importContext, removeAttributes, set, set, set, set, set, set, set, set, set, toString
public AmountFormatQueryBuilder setFormatName(String formatName)
formatName
- the format's name, not null.public AmountFormatQueryBuilder setLocale(Locale locale)
locale
- the locale, not null.public AmountFormatQueryBuilder setMonetaryQuery(MonetaryAmountFactoryQuery monetaryQuery)
MonetaryContext
to be used, when amount's are parsed.monetaryQuery
- the monetary query, not null
.public AmountFormatQueryBuilder setMonetaryAmountFactory(MonetaryAmountFactory<?> monetaryFactory)
MonetaryAmountFactory
to be used to of amounts during parsing.monetaryFactory
- the MonetaryAmountFactory
to be used, not null.public AmountFormatQuery build()
AmountFormatQuery
instance.build
in class AbstractQueryBuilder<AmountFormatQueryBuilder,AmountFormatQuery>
AmountFormatQuery
instance, never null.public static AmountFormatQueryBuilder of(AmountFormatQuery formatQuery)
AmountFormatQueryBuilder
and initializes it with the values from {@code formatQuery.formatQuery
- the base AmountFormatContext
, not null
.AmountFormatQueryBuilder
instance, never null.public static AmountFormatQueryBuilder of(String formatName)
AmountFormatQueryBuilder
.formatName
- the target format's name String
, not null
.AmountFormatQueryBuilder
instance, never null.public static AmountFormatQueryBuilder of(Locale locale)
AmountFormatQueryBuilder
for a formatter based on the
locale specific
defaults.locale
- the target Locale
, not null
.AmountFormatQueryBuilder
instance, never null.Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.