Package | Description |
---|---|
javax.money |
Main package of the Money and Currency API.
|
javax.money.spi |
SPI interfaces of the Money and Currency API, including bootstrap logic.
|
Modifier and Type | Method and Description |
---|---|
MonetaryContext |
MonetaryContextBuilder.build()
Creates a new instance of
MonetaryAmountFactoryQuery . |
static MonetaryContext |
MonetaryContext.from(MonetaryAmountFactoryQuery monetaryAmountFactoryQuery,
Class<? extends MonetaryAmount> amountClass)
This method allows to easily of a new MonetaryContext instance from a given
.MonetaryAmountFactoryQuery . |
static MonetaryContext |
MonetaryContext.from(MonetaryContext monetaryContext,
Class<? extends MonetaryAmount> amountClass)
Creates a new MonetaryContext).
|
MonetaryContext |
MonetaryAmount.getContext()
Returns the
MonetaryContext of this MonetaryAmount . |
MonetaryContext |
MonetaryAmountFactory.getDefaultMonetaryContext()
Returns the default
MonetaryContext used, when no MonetaryContext is
provided. |
default MonetaryContext |
MonetaryAmountFactory.getMaximalMonetaryContext()
Returns the maximal
MonetaryContext supported, for requests that exceed these maximal
capabilities, an ArithmeticException must be thrown. |
Modifier and Type | Method and Description |
---|---|
static MonetaryContext |
MonetaryContext.from(MonetaryContext monetaryContext,
Class<? extends MonetaryAmount> amountClass)
Creates a new MonetaryContext).
|
static MonetaryContextBuilder |
MonetaryContextBuilder.of(MonetaryContext monetaryContext)
Creates a new builder, using an existing
MonetaryContext as a template. |
MonetaryAmountFactory<T> |
MonetaryAmountFactory.setContext(MonetaryContext monetaryContext)
Sets the
MonetaryContext to be used. |
Modifier and Type | Method and Description |
---|---|
MonetaryContext |
MonetaryAmountFactoryProviderSpi.getDefaultMonetaryContext()
Returns the default
MonetaryContext used, when no MonetaryContext is
provided. |
default MonetaryContext |
MonetaryAmountFactoryProviderSpi.getMaximalMonetaryContext()
Returns the maximal
MonetaryContext supported, for requests that exceed these maximal
capabilities, an ArithmeticException must be thrown. |
Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.