Package | Description |
---|---|
javax.money |
Main package of the Money and Currency API.
|
javax.money.format |
Money and Currency format API.
|
javax.money.spi |
SPI interfaces of the Money and Currency API, including bootstrap logic.
|
Modifier and Type | Method and Description |
---|---|
MonetaryAmountFactoryQuery |
MonetaryAmountFactoryQueryBuilder.build()
Creates a new instance of
MonetaryAmountFactoryQuery based on the values of this
Builder. |
Modifier and Type | Method and Description |
---|---|
static MonetaryContext |
MonetaryContext.from(MonetaryAmountFactoryQuery monetaryAmountFactoryQuery,
Class<? extends MonetaryAmount> amountClass)
This method allows to easily of a new MonetaryContext instance from a given
.MonetaryAmountFactoryQuery . |
static Collection<MonetaryAmountFactory<?>> |
Monetary.getAmountFactories(MonetaryAmountFactoryQuery query)
Returns all factory instances that match the query.
|
static MonetaryAmountFactory |
Monetary.getAmountFactory(MonetaryAmountFactoryQuery query)
Executes the query and returns the factory found, if there is only one factory.
|
static boolean |
Monetary.isAvailable(MonetaryAmountFactoryQuery query)
Allows to check if any of the getXXX methods return non empty/non null results of
.MonetaryAmountFactory . |
static MonetaryAmountFactoryQueryBuilder |
MonetaryAmountFactoryQueryBuilder.of(MonetaryAmountFactoryQuery monetaryAmountFactoryQuery)
Creates a new instance of
CurrencyQueryBuilder . |
Modifier and Type | Method and Description |
---|---|
AmountFormatQueryBuilder |
AmountFormatQueryBuilder.setMonetaryQuery(MonetaryAmountFactoryQuery monetaryQuery)
Sets the
MonetaryContext to be used, when amount's are parsed. |
Modifier and Type | Method and Description |
---|---|
Collection<MonetaryAmountFactory<? extends MonetaryAmount>> |
MonetaryAmountsSingletonQuerySpi.getAmountFactories(MonetaryAmountFactoryQuery query)
Get the
MonetaryAmountFactory implementation class, that best matches to cover the given
MonetaryContext . |
default MonetaryAmountFactory |
MonetaryAmountsSingletonQuerySpi.getAmountFactory(MonetaryAmountFactoryQuery query)
Executes the query and returns the
MonetaryAmountFactory implementation type found,
if there is only one type. |
default Class<? extends MonetaryAmount> |
MonetaryAmountsSingletonQuerySpi.getAmountType(MonetaryAmountFactoryQuery query)
Executes the query and returns the
MonetaryAmount implementation type found,
if there is only one type. |
default Collection<Class<? extends MonetaryAmount>> |
MonetaryAmountsSingletonQuerySpi.getAmountTypes(MonetaryAmountFactoryQuery query)
Executes the query and returns the
MonetaryAmount implementation types found. |
default boolean |
MonetaryAmountsSingletonQuerySpi.isAvailable(MonetaryAmountFactoryQuery query)
Checks if an
MonetaryAmountFactory is matching the given query. |
Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.