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 MonetaryContextMonetaryContextBuilder. build()Creates a new instance ofMonetaryAmountFactoryQuery.static MonetaryContextMonetaryContext. from(MonetaryAmountFactoryQuery monetaryAmountFactoryQuery, java.lang.Class<? extends MonetaryAmount> amountClass)This method allows to easily of a new MonetaryContext instance from a given.MonetaryAmountFactoryQuery.static MonetaryContextMonetaryContext. from(MonetaryContext monetaryContext, java.lang.Class<? extends MonetaryAmount> amountClass)Creates a new MonetaryContext).MonetaryContextMonetaryAmount. getContext()Returns theMonetaryContextof thisMonetaryAmount.MonetaryContextMonetaryAmountFactory. getDefaultMonetaryContext()Returns the defaultMonetaryContextused, when noMonetaryContextis provided.default MonetaryContextMonetaryAmountFactory. getMaximalMonetaryContext()Returns the maximalMonetaryContextsupported, for requests that exceed these maximal capabilities, anArithmeticExceptionmust be thrown.Methods in javax.money with parameters of type MonetaryContext Modifier and Type Method Description static MonetaryContextMonetaryContext. from(MonetaryContext monetaryContext, java.lang.Class<? extends MonetaryAmount> amountClass)Creates a new MonetaryContext).static MonetaryContextBuilderMonetaryContextBuilder. of(MonetaryContext monetaryContext)Creates a new builder, using an existingMonetaryContextas a template.MonetaryAmountFactory<T>MonetaryAmountFactory. setContext(MonetaryContext monetaryContext)Sets theMonetaryContextto be used. -
Uses of MonetaryContext in javax.money.spi
Methods in javax.money.spi that return MonetaryContext Modifier and Type Method Description MonetaryContextMonetaryAmountFactoryProviderSpi. getDefaultMonetaryContext()Returns the defaultMonetaryContextused, when noMonetaryContextis provided.default MonetaryContextMonetaryAmountFactoryProviderSpi. getMaximalMonetaryContext()Returns the maximalMonetaryContextsupported, for requests that exceed these maximal capabilities, anArithmeticExceptionmust be thrown.