Uses of Interface
javax.money.MonetaryAmountFactory
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 MonetaryAmountFactory in javax.money
Methods in javax.money that return MonetaryAmountFactory Modifier and Type Method Description static <T extends MonetaryAmount>
MonetaryAmountFactory<T>Monetary. getAmountFactory(java.lang.Class<T> amountType)
Access anMonetaryAmountFactory
for the givenMonetaryAmount
implementation type.static MonetaryAmountFactory
Monetary. getAmountFactory(MonetaryAmountFactoryQuery query)
Executes the query and returns the factory found, if there is only one factory.static MonetaryAmountFactory<?>
Monetary. getDefaultAmountFactory()
Access the defaultMonetaryAmountFactory
as defined byMonetaryAmountsSingletonSpi.getDefaultAmountFactory()
.MonetaryAmountFactory<? extends MonetaryAmount>
MonetaryAmount. getFactory()
Creates a newMonetaryAmountFactory
, returning the same implementation type Hereby this given amount is used as a template, so reusing theCurrencyUnit
, its numeric value, the algorithmic implementation as well as the currentMonetaryContext
.default MonetaryAmountFactory<T>
MonetaryAmountFactory. setAmount(MonetaryAmount amount)
Uses an arbitraryMonetaryAmount
to initialize this factory.MonetaryAmountFactory<T>
MonetaryAmountFactory. setContext(MonetaryContext monetaryContext)
Sets theMonetaryContext
to be used.default MonetaryAmountFactory<T>
MonetaryAmountFactory. setCurrency(java.lang.String currencyCode)
Sets theCurrencyUnit
to be used.MonetaryAmountFactory<T>
MonetaryAmountFactory. setCurrency(CurrencyUnit currency)
Sets theCurrencyUnit
to be used.MonetaryAmountFactory<T>
MonetaryAmountFactory. setNumber(double number)
Sets the number to be used.MonetaryAmountFactory<T>
MonetaryAmountFactory. setNumber(long number)
Sets the number to be used.MonetaryAmountFactory<T>
MonetaryAmountFactory. setNumber(java.lang.Number number)
Sets the number to be used.Methods in javax.money that return types with arguments of type MonetaryAmountFactory Modifier and Type Method Description static java.util.Collection<MonetaryAmountFactory<?>>
Monetary. getAmountFactories()
Access all currently availableMonetaryAmount
implementation classes that are accessible from thisMonetaryAmount
singleton.static java.util.Collection<MonetaryAmountFactory<?>>
Monetary. getAmountFactories(MonetaryAmountFactoryQuery query)
Returns all factory instances that match the query. -
Uses of MonetaryAmountFactory in javax.money.format
Methods in javax.money.format that return MonetaryAmountFactory Modifier and Type Method Description MonetaryAmountFactory
AmountFormatQuery. getMonetaryAmountFactory()
Gets theMonetaryAmountFactoryQuery
to be used for accessing.MonetaryAmountFactory
, when amount's are parsed.MonetaryAmountFactory<?>
AmountFormatContext. getParseFactory()
Access the format'sMonetaryAmountFactory
that is used to of new amounts during parsing.Methods in javax.money.format with parameters of type MonetaryAmountFactory Modifier and Type Method Description AmountFormatContextBuilder
AmountFormatContextBuilder. setMonetaryAmountFactory(MonetaryAmountFactory monetaryAmountBuilder)
Sets theMonetaryContext
to be used, when amount's are parsed.AmountFormatQueryBuilder
AmountFormatQueryBuilder. setMonetaryAmountFactory(MonetaryAmountFactory<?> monetaryFactory)
Sets theMonetaryAmountFactory
to be used to of amounts during parsing. -
Uses of MonetaryAmountFactory in javax.money.spi
Methods in javax.money.spi that return MonetaryAmountFactory Modifier and Type Method Description MonetaryAmountFactory<T>
MonetaryAmountFactoryProviderSpi. createMonetaryAmountFactory()
Access aMonetaryAmountFactory
given the required context.default MonetaryAmountFactory
MonetaryAmountsSingletonQuerySpi. getAmountFactory(MonetaryAmountFactoryQuery query)
Executes the query and returns theMonetaryAmountFactory
implementation type found, if there is only one type.<T extends MonetaryAmount>
MonetaryAmountFactory<T>MonetaryAmountsSingletonSpi. getAmountFactory(java.lang.Class<T> amountType)
Access theMonetaryAmountFactory
for the givenamountType
.default MonetaryAmountFactory<?>
MonetaryAmountsSingletonSpi. getDefaultAmountFactory()
Access the defaultMonetaryAmountFactory
.Methods in javax.money.spi that return types with arguments of type MonetaryAmountFactory 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 java.util.Collection<MonetaryAmountFactory<?>>
MonetaryAmountsSingletonSpi. getAmountFactories()
Get the currently registeredMonetaryAmount
implementation classes.