| 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 | Description |
|---|---|---|
static <T extends MonetaryAmount> |
Monetary.getAmountFactory(Class<T> amountType) |
Access an
MonetaryAmountFactory for the given MonetaryAmount 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 default
MonetaryAmountFactory as defined by
MonetaryAmountsSingletonSpi.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 the CurrencyUnit, its numeric
value, the algorithmic implementation as well as the current MonetaryContext. |
default MonetaryAmountFactory<T> |
MonetaryAmountFactory.setAmount(MonetaryAmount amount) |
Uses an arbitrary
MonetaryAmount to initialize this factory. |
MonetaryAmountFactory<T> |
MonetaryAmountFactory.setContext(MonetaryContext monetaryContext) |
Sets the
MonetaryContext to be used. |
default MonetaryAmountFactory<T> |
MonetaryAmountFactory.setCurrency(String currencyCode) |
Sets the
CurrencyUnit to be used. |
MonetaryAmountFactory<T> |
MonetaryAmountFactory.setCurrency(CurrencyUnit currency) |
Sets the
CurrencyUnit 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(Number number) |
Sets the number to be used.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Collection<MonetaryAmountFactory<?>> |
Monetary.getAmountFactories() |
Access all currently available
MonetaryAmount implementation classes that are
accessible from this MonetaryAmount singleton. |
static Collection<MonetaryAmountFactory<?>> |
Monetary.getAmountFactories(MonetaryAmountFactoryQuery query) |
Returns all factory instances that match the query.
|
| Modifier and Type | Method | Description |
|---|---|---|
MonetaryAmountFactory |
AmountFormatQuery.getMonetaryAmountFactory() |
Gets the
MonetaryAmountFactoryQuery to be used for accessing .MonetaryAmountFactory, when amount's are parsed. |
MonetaryAmountFactory<?> |
AmountFormatContext.getParseFactory() |
Access the format's
MonetaryAmountFactory that is used to of new amounts during
parsing. |
| Modifier and Type | Method | Description |
|---|---|---|
AmountFormatContextBuilder |
AmountFormatContextBuilder.setMonetaryAmountFactory(MonetaryAmountFactory monetaryAmountBuilder) |
Sets the
MonetaryContext to be used, when amount's are parsed. |
AmountFormatQueryBuilder |
AmountFormatQueryBuilder.setMonetaryAmountFactory(MonetaryAmountFactory<?> monetaryFactory) |
Sets the
MonetaryAmountFactory to be used to of amounts during parsing. |
| Modifier and Type | Method | Description |
|---|---|---|
MonetaryAmountFactory<T> |
MonetaryAmountFactoryProviderSpi.createMonetaryAmountFactory() |
Access a
MonetaryAmountFactory given the required context. |
default MonetaryAmountFactory |
MonetaryAmountsSingletonQuerySpi.getAmountFactory(MonetaryAmountFactoryQuery query) |
Executes the query and returns the
MonetaryAmountFactory implementation type found,
if there is only one type. |
<T extends MonetaryAmount> |
MonetaryAmountsSingletonSpi.getAmountFactory(Class<T> amountType) |
Access the
MonetaryAmountFactory for the given amountType . |
default MonetaryAmountFactory<?> |
MonetaryAmountsSingletonSpi.getDefaultAmountFactory() |
Access the default
MonetaryAmountFactory. |
| Modifier and Type | Method | Description |
|---|---|---|
Collection<MonetaryAmountFactory<? extends MonetaryAmount>> |
MonetaryAmountsSingletonQuerySpi.getAmountFactories(MonetaryAmountFactoryQuery query) |
Get the
MonetaryAmountFactory implementation class, that best matches to cover the given
MonetaryContext. |
default Collection<MonetaryAmountFactory<?>> |
MonetaryAmountsSingletonSpi.getAmountFactories() |
Get the currently registered
MonetaryAmount implementation classes. |
Copyright © 2012–2018 JSR 354 - Expert Group. All rights reserved.