Uses of Interface
javax.money.MonetaryRounding
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 MonetaryRounding in javax.money
Methods in javax.money that return MonetaryRounding Modifier and Type Method Description MonetaryRounding
DefaultMonetaryRoundingsSingletonSpi. getDefaultRounding()
Get the default rounding, which delegates rounding dynamically depending on the current currency.static MonetaryRounding
Monetary. getDefaultRounding()
Creates a rounding that can be added asMonetaryOperator
to chained calculations.static MonetaryRounding
Monetary. getRounding(java.lang.String roundingName, java.lang.String... providers)
Access anMonetaryOperator
for custom roundingMonetaryAmount
instances.static MonetaryRounding
Monetary. getRounding(CurrencyUnit currencyUnit, java.lang.String... providers)
Creates anMonetaryOperator
for roundingMonetaryAmount
instances given a currency.static MonetaryRounding
Monetary. getRounding(RoundingQuery roundingQuery)
Access aMonetaryRounding
using a possibly complex query.Methods in javax.money that return types with arguments of type MonetaryRounding Modifier and Type Method Description java.util.Collection<MonetaryRounding>
DefaultMonetaryRoundingsSingletonSpi. getRoundings(RoundingQuery query)
Query all roundings matching the givenRoundingQuery
.static java.util.Collection<MonetaryRounding>
Monetary. getRoundings(RoundingQuery roundingQuery)
Access multipleMonetaryRounding
instances using a possibly complex query -
Uses of MonetaryRounding in javax.money.spi
Methods in javax.money.spi that return MonetaryRounding Modifier and Type Method Description MonetaryRounding
MonetaryRoundingsSingletonSpi. getDefaultRounding()
Creates aMonetaryRounding
that can be added asMonetaryOperator
to chained calculations.default MonetaryRounding
MonetaryRoundingsSingletonSpi. getRounding(java.lang.String roundingName, java.lang.String... providers)
Access aMonetaryRounding
using the rounding name.default MonetaryRounding
MonetaryRoundingsSingletonSpi. getRounding(CurrencyUnit currencyUnit, java.lang.String... providers)
Access aMonetaryRounding
for roundingMonetaryAmount
instances given a currency.default MonetaryRounding
MonetaryRoundingsSingletonSpi. getRounding(RoundingQuery query)
Query a specific rounding with the given query.MonetaryRounding
RoundingProviderSpi. getRounding(RoundingQuery query)
Evaluate the rounding that match the given query.Methods in javax.money.spi that return types with arguments of type MonetaryRounding Modifier and Type Method Description java.util.Collection<MonetaryRounding>
MonetaryRoundingsSingletonSpi. getRoundings(RoundingQuery query)
Execute a query forMonetaryRounding
.