Uses of Class
javax.money.MonetaryAmountFactoryQuery
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.
|
-
Uses of MonetaryAmountFactoryQuery in javax.money
Methods in javax.money that return MonetaryAmountFactoryQuery Modifier and Type Method Description MonetaryAmountFactoryQuery
MonetaryAmountFactoryQueryBuilder. build()
Creates a new instance ofMonetaryAmountFactoryQuery
based on the values of this Builder.Methods in javax.money with parameters of type MonetaryAmountFactoryQuery Modifier and Type Method Description static MonetaryContext
MonetaryContext. from(MonetaryAmountFactoryQuery monetaryAmountFactoryQuery, java.lang.Class<? extends MonetaryAmount> amountClass)
This method allows to easily of a new MonetaryContext instance from a given.MonetaryAmountFactoryQuery
.static java.util.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 ofCurrencyQueryBuilder
. -
Uses of MonetaryAmountFactoryQuery in javax.money.format
Methods in javax.money.format with parameters of type MonetaryAmountFactoryQuery Modifier and Type Method Description AmountFormatQueryBuilder
AmountFormatQueryBuilder. setMonetaryQuery(MonetaryAmountFactoryQuery monetaryQuery)
Sets theMonetaryContext
to be used, when amount's are parsed. -
Uses of MonetaryAmountFactoryQuery in javax.money.spi
Methods in javax.money.spi with parameters of type MonetaryAmountFactoryQuery Modifier and Type Method Description java.util.Collection<MonetaryAmountFactory<? extends MonetaryAmount>>
MonetaryAmountsSingletonQuerySpi. getAmountFactories(MonetaryAmountFactoryQuery query)
Get theMonetaryAmountFactory
implementation class, that best matches to cover the givenMonetaryContext
.default MonetaryAmountFactory
MonetaryAmountsSingletonQuerySpi. getAmountFactory(MonetaryAmountFactoryQuery query)
Executes the query and returns theMonetaryAmountFactory
implementation type found, if there is only one type.default java.lang.Class<? extends MonetaryAmount>
MonetaryAmountsSingletonQuerySpi. getAmountType(MonetaryAmountFactoryQuery query)
Executes the query and returns theMonetaryAmount
implementation type found, if there is only one type.default java.util.Collection<java.lang.Class<? extends MonetaryAmount>>
MonetaryAmountsSingletonQuerySpi. getAmountTypes(MonetaryAmountFactoryQuery query)
Executes the query and returns theMonetaryAmount
implementation types found.default boolean
MonetaryAmountsSingletonQuerySpi. isAvailable(MonetaryAmountFactoryQuery query)
Checks if anMonetaryAmountFactory
is matching the given query.