public final class MonetaryAmountFactoryQueryBuilder extends AbstractQueryBuilder<MonetaryAmountFactoryQueryBuilder,MonetaryAmountFactoryQuery>
MonetaryAmountFactoryQuery that can be passed
to access MonetaryAmountFactory instances using a possible complex query.
Note this class is NOT thread-safe.
| Modifier and Type | Method and Description |
|---|---|
MonetaryAmountFactoryQuery |
build()
Creates a new instance of
MonetaryAmountFactoryQuery based on the values of this
Builder. |
static MonetaryAmountFactoryQueryBuilder |
of()
Creates a new instance of
CurrencyQueryBuilder. |
static MonetaryAmountFactoryQueryBuilder |
of(MonetaryAmountFactoryQuery monetaryAmountFactoryQuery)
Creates a new instance of
CurrencyQueryBuilder. |
MonetaryAmountFactoryQueryBuilder |
setFixedScale(boolean fixedScale)
Sets the flag if the scale should fixed, meaning minimal scale and maximal scale are always equally sized.
|
MonetaryAmountFactoryQueryBuilder |
setMaxScale(int maxScale)
Sets the maximal scale to be supported.
|
MonetaryAmountFactoryQueryBuilder |
setPrecision(int precision)
Sets the required precision, the value 0 models unlimited precision.
|
set, setProviderName, setProviderNames, setProviderNames, setTargetTypeimportContext, importContext, removeAttributes, set, set, set, set, set, set, set, set, set, toStringpublic MonetaryAmountFactoryQueryBuilder setMaxScale(int maxScale)
maxScale - the max scale, >= 0.public MonetaryAmountFactoryQueryBuilder setPrecision(int precision)
precision - the precision, >= 0, 0 meaning unlimited.public MonetaryAmountFactoryQueryBuilder setFixedScale(boolean fixedScale)
fixedScale - the fixed scale flag.public MonetaryAmountFactoryQuery build()
MonetaryAmountFactoryQuery based on the values of this
Builder. Note that
the Builder supports creation of several Builder instances from the a common Builder instance. But be aware
that the keys and values contained are themselves not recursively cloned (deep-copy).build in class AbstractQueryBuilder<MonetaryAmountFactoryQueryBuilder,MonetaryAmountFactoryQuery>MonetaryAmountFactoryQuery instance.public static MonetaryAmountFactoryQueryBuilder of()
CurrencyQueryBuilder.CurrencyQueryBuilder instance, never null.public static MonetaryAmountFactoryQueryBuilder of(MonetaryAmountFactoryQuery monetaryAmountFactoryQuery)
CurrencyQueryBuilder.monetaryAmountFactoryQuery - MonetaryAmountFactoryQuery used for initializing this
builder.MonetaryAmountFactoryQueryBuilder instance, never null.Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.