| 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 | 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 as
MonetaryOperator to
chained calculations. |
static MonetaryRounding |
Monetary.getRounding(String roundingName,
String... providers) |
Access an
MonetaryOperator for custom rounding
MonetaryAmount instances. |
static MonetaryRounding |
Monetary.getRounding(CurrencyUnit currencyUnit,
String... providers) |
Creates an
MonetaryOperator for rounding MonetaryAmount
instances given a currency. |
static MonetaryRounding |
Monetary.getRounding(RoundingQuery roundingQuery) |
Access a
MonetaryRounding using a possibly complex query. |
| Modifier and Type | Method | Description |
|---|---|---|
Collection<MonetaryRounding> |
DefaultMonetaryRoundingsSingletonSpi.getRoundings(RoundingQuery query) |
Query all roundings matching the given
RoundingQuery. |
static Collection<MonetaryRounding> |
Monetary.getRoundings(RoundingQuery roundingQuery) |
Access multiple
MonetaryRounding instances using a possibly complex query |
| Modifier and Type | Method | Description |
|---|---|---|
MonetaryRounding |
MonetaryRoundingsSingletonSpi.getDefaultRounding() |
Creates a
MonetaryRounding that can be added as MonetaryOperator to
chained calculations. |
default MonetaryRounding |
MonetaryRoundingsSingletonSpi.getRounding(String roundingName,
String... providers) |
Access a
MonetaryRounding using the rounding name. |
default MonetaryRounding |
MonetaryRoundingsSingletonSpi.getRounding(CurrencyUnit currencyUnit,
String... providers) |
Access a
MonetaryRounding for rounding MonetaryAmount
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.
|
| Modifier and Type | Method | Description |
|---|---|---|
Collection<MonetaryRounding> |
MonetaryRoundingsSingletonSpi.getRoundings(RoundingQuery query) |
Execute a query for
MonetaryRounding. |
Copyright © 2012–2018 JSR 354 - Expert Group. All rights reserved.