public final class CurrencyQueryBuilder extends AbstractQueryBuilder<CurrencyQueryBuilder,CurrencyQuery>
CurrencyUnit
instances. If not properties are set the
query should
returns
the default currencies. Similarly if no provider is set explicitly the default ISO currencies as
returned by Currency
should be returned.
Note this class is NOT thread-safe.
Modifier and Type | Method and Description |
---|---|
CurrencyQuery |
build()
Creates a new instance of
CurrencyQuery . |
static CurrencyQueryBuilder |
of()
Creates a new instance of
CurrencyQueryBuilder . |
static CurrencyQueryBuilder |
of(CurrencyQuery currencyQuery)
Creates a new instance of
CurrencyQueryBuilder . |
CurrencyQueryBuilder |
setCountries(Locale... countries)
Sets the country for which currencies should be requested.
|
CurrencyQueryBuilder |
setCurrencyCodes(String... codes)
Sets the currency code, or the regular expression to select codes.
|
CurrencyQueryBuilder |
setNumericCodes(int... codes)
Set the numeric code.
|
set, setProviderName, setProviderNames, setProviderNames, setTargetType
importContext, importContext, removeAttributes, set, set, set, set, set, set, set, set, set, toString
public CurrencyQueryBuilder setCountries(Locale... countries)
countries
- The ISO countries.public CurrencyQueryBuilder setCurrencyCodes(String... codes)
codes
- the currency codes or code expressions, not null.public CurrencyQueryBuilder setNumericCodes(int... codes)
codes
- the numeric codes.public CurrencyQuery build()
CurrencyQuery
.build
in class AbstractQueryBuilder<CurrencyQueryBuilder,CurrencyQuery>
CurrencyQuery
instance, never null.public static CurrencyQueryBuilder of()
CurrencyQueryBuilder
.CurrencyQueryBuilder
instance, never null.public static CurrencyQueryBuilder of(CurrencyQuery currencyQuery)
CurrencyQueryBuilder
.currencyQuery
- CurrencyQuery
used for initializing this builder.CurrencyQueryBuilder
instance, never null.Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.