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 anMonetaryAmountFactoryfor the givenMonetaryAmountimplementation type.static MonetaryAmountFactoryMonetary. getAmountFactory(MonetaryAmountFactoryQuery query)Executes the query and returns the factory found, if there is only one factory.static MonetaryAmountFactory<?>Monetary. getDefaultAmountFactory()Access the defaultMonetaryAmountFactoryas 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 arbitraryMonetaryAmountto initialize this factory.MonetaryAmountFactory<T>MonetaryAmountFactory. setContext(MonetaryContext monetaryContext)Sets theMonetaryContextto be used.default MonetaryAmountFactory<T>MonetaryAmountFactory. setCurrency(java.lang.String currencyCode)Sets theCurrencyUnitto be used.MonetaryAmountFactory<T>MonetaryAmountFactory. setCurrency(CurrencyUnit currency)Sets theCurrencyUnitto 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 availableMonetaryAmountimplementation classes that are accessible from thisMonetaryAmountsingleton.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 MonetaryAmountFactoryAmountFormatQuery. getMonetaryAmountFactory()Gets theMonetaryAmountFactoryQueryto be used for accessing.MonetaryAmountFactory, when amount's are parsed.MonetaryAmountFactory<?>AmountFormatContext. getParseFactory()Access the format'sMonetaryAmountFactorythat is used to of new amounts during parsing.Methods in javax.money.format with parameters of type MonetaryAmountFactory Modifier and Type Method Description AmountFormatContextBuilderAmountFormatContextBuilder. setMonetaryAmountFactory(MonetaryAmountFactory monetaryAmountBuilder)Sets theMonetaryContextto be used, when amount's are parsed.AmountFormatQueryBuilderAmountFormatQueryBuilder. setMonetaryAmountFactory(MonetaryAmountFactory<?> monetaryFactory)Sets theMonetaryAmountFactoryto 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 aMonetaryAmountFactorygiven the required context.default MonetaryAmountFactoryMonetaryAmountsSingletonQuerySpi. getAmountFactory(MonetaryAmountFactoryQuery query)Executes the query and returns theMonetaryAmountFactoryimplementation type found, if there is only one type.<T extends MonetaryAmount>
MonetaryAmountFactory<T>MonetaryAmountsSingletonSpi. getAmountFactory(java.lang.Class<T> amountType)Access theMonetaryAmountFactoryfor 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 theMonetaryAmountFactoryimplementation class, that best matches to cover the givenMonetaryContext.default java.util.Collection<MonetaryAmountFactory<?>>MonetaryAmountsSingletonSpi. getAmountFactories()Get the currently registeredMonetaryAmountimplementation classes.