Uses of Class
javax.money.MonetaryContext
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.
|
-
Uses of MonetaryContext in javax.money
Methods in javax.money that return MonetaryContext Modifier and Type Method Description MonetaryContext
MonetaryContextBuilder. build()
Creates a new instance ofMonetaryAmountFactoryQuery
.static MonetaryContext
MonetaryContext. from(MonetaryAmountFactoryQuery monetaryAmountFactoryQuery, java.lang.Class<? extends MonetaryAmount> amountClass)
This method allows to easily of a new MonetaryContext instance from a given.MonetaryAmountFactoryQuery
.static MonetaryContext
MonetaryContext. from(MonetaryContext monetaryContext, java.lang.Class<? extends MonetaryAmount> amountClass)
Creates a new MonetaryContext).MonetaryContext
MonetaryAmount. getContext()
Returns theMonetaryContext
of thisMonetaryAmount
.MonetaryContext
MonetaryAmountFactory. getDefaultMonetaryContext()
Returns the defaultMonetaryContext
used, when noMonetaryContext
is provided.default MonetaryContext
MonetaryAmountFactory. getMaximalMonetaryContext()
Returns the maximalMonetaryContext
supported, for requests that exceed these maximal capabilities, anArithmeticException
must be thrown.Methods in javax.money with parameters of type MonetaryContext Modifier and Type Method Description static MonetaryContext
MonetaryContext. from(MonetaryContext monetaryContext, java.lang.Class<? extends MonetaryAmount> amountClass)
Creates a new MonetaryContext).static MonetaryContextBuilder
MonetaryContextBuilder. of(MonetaryContext monetaryContext)
Creates a new builder, using an existingMonetaryContext
as a template.MonetaryAmountFactory<T>
MonetaryAmountFactory. setContext(MonetaryContext monetaryContext)
Sets theMonetaryContext
to be used. -
Uses of MonetaryContext in javax.money.spi
Methods in javax.money.spi that return MonetaryContext Modifier and Type Method Description MonetaryContext
MonetaryAmountFactoryProviderSpi. getDefaultMonetaryContext()
Returns the defaultMonetaryContext
used, when noMonetaryContext
is provided.default MonetaryContext
MonetaryAmountFactoryProviderSpi. getMaximalMonetaryContext()
Returns the maximalMonetaryContext
supported, for requests that exceed these maximal capabilities, anArithmeticException
must be thrown.