| 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 | 
|---|---|
| static <T extends MonetaryAmount> | Monetary. getAmountFactory(Class<T> amountType)Access an  MonetaryAmountFactoryfor the givenMonetaryAmountimplementation
 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 default  MonetaryAmountFactoryas defined byMonetaryAmountsSingletonSpi.getDefaultAmountFactory(). | 
| MonetaryAmountFactory<? extends MonetaryAmount> | MonetaryAmount. getFactory()Creates a new  MonetaryAmountFactory, 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 arbitrary  MonetaryAmountto initialize this factory. | 
| MonetaryAmountFactory<T> | MonetaryAmountFactory. setContext(MonetaryContext monetaryContext)Sets the  MonetaryContextto be used. | 
| MonetaryAmountFactory<T> | MonetaryAmountFactory. setCurrency(CurrencyUnit currency)Sets the  CurrencyUnitto be used. | 
| default MonetaryAmountFactory<T> | MonetaryAmountFactory. setCurrency(String currencyCode)Sets the  CurrencyUnitto 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(Number number)Sets the number to be used. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Collection<MonetaryAmountFactory<?>> | Monetary. getAmountFactories()Access all currently available  MonetaryAmountimplementation classes that are
 accessible from thisMonetaryAmountsingleton. | 
| static Collection<MonetaryAmountFactory<?>> | Monetary. getAmountFactories(MonetaryAmountFactoryQuery query)Returns all factory instances that match the query. | 
| Modifier and Type | Method and Description | 
|---|---|
| MonetaryAmountFactory | AmountFormatQuery. getMonetaryAmountFactory()Gets the  MonetaryAmountFactoryQueryto be used for accessing.MonetaryAmountFactory, when amount's are parsed. | 
| MonetaryAmountFactory<?> | AmountFormatContext. getParseFactory()Access the format's  MonetaryAmountFactorythat is used to of new amounts during
 parsing. | 
| Modifier and Type | Method and Description | 
|---|---|
| AmountFormatContextBuilder | AmountFormatContextBuilder. setMonetaryAmountFactory(MonetaryAmountFactory monetaryAmountBuilder)Sets the  MonetaryContextto be used, when amount's are parsed. | 
| AmountFormatQueryBuilder | AmountFormatQueryBuilder. setMonetaryAmountFactory(MonetaryAmountFactory<?> monetaryFactory)Sets the  MonetaryAmountFactoryto be used to of amounts during parsing. | 
| Modifier and Type | Method and Description | 
|---|---|
| MonetaryAmountFactory<T> | MonetaryAmountFactoryProviderSpi. createMonetaryAmountFactory()Access a  MonetaryAmountFactorygiven the required context. | 
| <T extends MonetaryAmount> | MonetaryAmountsSingletonSpi. getAmountFactory(Class<T> amountType)Access the  MonetaryAmountFactoryfor the givenamountType. | 
| default MonetaryAmountFactory | MonetaryAmountsSingletonQuerySpi. getAmountFactory(MonetaryAmountFactoryQuery query)Executes the query and returns the  MonetaryAmountFactoryimplementation type found,
 if there is only one type. | 
| default MonetaryAmountFactory<?> | MonetaryAmountsSingletonSpi. getDefaultAmountFactory()Access the default  MonetaryAmountFactory. | 
| Modifier and Type | Method and Description | 
|---|---|
| default Collection<MonetaryAmountFactory<?>> | MonetaryAmountsSingletonSpi. getAmountFactories()Get the currently registered  MonetaryAmountimplementation classes. | 
| Collection<MonetaryAmountFactory<? extends MonetaryAmount>> | MonetaryAmountsSingletonQuerySpi. getAmountFactories(MonetaryAmountFactoryQuery query)Get the  MonetaryAmountFactoryimplementation class, that best matches to cover the givenMonetaryContext. | 
Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.