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 |
---|---|
MonetaryContext |
MonetaryContext.Builder.create()
Builds a new instance of
MonetaryContext . |
static MonetaryContext |
MonetaryContext.from(MonetaryContext context,
java.lang.Class<? extends MonetaryAmount> amountType)
Creates a new
MonetaryContext targeting the the given amount
type, using the given MonetaryContext (so converting it). |
MonetaryContext |
MonetaryAmountFactory.getDefaultMonetaryContext()
Returns the default
MonetaryContext used, when no MonetaryContext is
provided. |
MonetaryContext |
MonetaryAmountFactory.getMaximalMonetaryContext()
Returns the maximal
MonetaryContext supported, for requests that exceed these maximal
capabilities, an ArithmeticException must be thrown. |
MonetaryContext |
MonetaryAmount.getMonetaryContext()
Returns the
MonetaryContext of this MonetaryAmount . |
Modifier and Type | Method and Description |
---|---|
static MonetaryContext |
MonetaryContext.from(MonetaryContext context,
java.lang.Class<? extends MonetaryAmount> amountType)
Creates a new
MonetaryContext targeting the the given amount
type, using the given MonetaryContext (so converting it). |
static MonetaryOperator |
MonetaryRoundings.getRounding(MonetaryContext monetaryContext)
Creates an rounding instance using
RoundingMode.UP rounding. |
static java.lang.Class<? extends MonetaryAmount> |
MonetaryAmounts.queryAmountType(MonetaryContext requiredContext)
Get the
MonetaryAmount implementation class, that best matches to cover the given
MonetaryContext . |
MonetaryAmountFactory<T> |
MonetaryAmountFactory.setContext(MonetaryContext monetaryContext)
Sets the
MonetaryContext to be used. |
Constructor and Description |
---|
MonetaryContext.Builder(MonetaryContext context)
Creates a new
MonetaryContext.Builder and uses the given context to
initialize this instance. |
Modifier and Type | Method and Description |
---|---|
MonetaryContext |
MonetaryAmountFormat.getMonetaryContext()
The
MonetaryContext to be applied when a MonetaryAmount is parsed. |
Modifier and Type | Method and Description |
---|---|
void |
MonetaryAmountFormat.setMonetaryContext(MonetaryContext context)
Set the
MonetaryContext to be used. |
Modifier and Type | Method and Description |
---|---|
MonetaryContext |
MonetaryAmountFactoryProviderSpi.getDefaultMonetaryContext()
Returns the default
MonetaryContext used, when no MonetaryContext is
provided. |
MonetaryContext |
MonetaryAmountFactoryProviderSpi.getMaximalMonetaryContext()
Returns the maximal
MonetaryContext supported, for requests that exceed these maximal
capabilities, an ArithmeticException must be thrown. |
Modifier and Type | Method and Description |
---|---|
MonetaryOperator |
RoundingProviderSpi.getRounding(MonetaryContext monetaryContext)
Access a rounding that models the given
MonetaryContext . |
java.lang.Class<? extends MonetaryAmount> |
MonetaryAmountsSpi.queryAmountType(MonetaryContext requiredContext)
Get the
MonetaryAmount implementation class, that best matches to cover the given
MonetaryContext . |