Uses of Interface
javax.money.MonetaryAmountFactory
Packages that use MonetaryAmountFactory
Package
Description
Main package of the Money and Currency API.
Money and Currency format API.
SPI interfaces of the Money and Currency API, including bootstrap logic.
-
Uses of MonetaryAmountFactory in javax.money
Methods in javax.money that return MonetaryAmountFactoryModifier and TypeMethodDescriptionstatic <T extends MonetaryAmount>
MonetaryAmountFactory<T> Monetary.getAmountFactory(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.setContext(MonetaryContext monetaryContext) Sets theMonetaryContextto be used.default MonetaryAmountFactory<T> MonetaryAmountFactory.setCurrency(String currencyCode) Sets theCurrencyUnitto be used.MonetaryAmountFactory.setCurrency(CurrencyUnit currency) Sets theCurrencyUnitto be used.MonetaryAmountFactory.setNumber(double number) Sets the number to be used.MonetaryAmountFactory.setNumber(long number) Sets the number to be used.Sets the number to be used.Methods in javax.money that return types with arguments of type MonetaryAmountFactoryModifier and TypeMethodDescriptionstatic Collection<MonetaryAmountFactory<?>> Monetary.getAmountFactories()Access all currently availableMonetaryAmountimplementation classes that are accessible from thisMonetaryAmountsingleton.static 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 MonetaryAmountFactoryModifier and TypeMethodDescriptionAmountFormatQuery.getMonetaryAmountFactory()Gets theMonetaryAmountFactoryQueryto be used for accessing.MonetaryAmountFactory, when amount's are parsed.AmountFormatContext.getParseFactory()Access the format'sMonetaryAmountFactorythat is used to of new amounts during parsing.Methods in javax.money.format with parameters of type MonetaryAmountFactoryModifier and TypeMethodDescriptionAmountFormatContextBuilder.setMonetaryAmountFactory(MonetaryAmountFactory monetaryAmountBuilder) Sets theMonetaryContextto be used, when amount's are parsed.AmountFormatQueryBuilder.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 MonetaryAmountFactoryModifier and TypeMethodDescriptionMonetaryAmountFactoryProviderSpi.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(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 MonetaryAmountFactoryModifier and TypeMethodDescriptionCollection<MonetaryAmountFactory<? extends MonetaryAmount>> MonetaryAmountsSingletonQuerySpi.getAmountFactories(MonetaryAmountFactoryQuery query) Get theMonetaryAmountFactoryimplementation class, that best matches to cover the givenMonetaryContext.default Collection<MonetaryAmountFactory<?>> MonetaryAmountsSingletonSpi.getAmountFactories()Get the currently registeredMonetaryAmountimplementation classes.