Package | Description |
---|---|
javax.money |
Main package of the Money and Currency API.
|
javax.money.convert |
Defines the monetary currency conversion 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 |
---|---|
static MonetaryOperator |
MonetaryRoundings.getCashRounding(CurrencyUnit currency)
Creates an
MonetaryOperator for rounding MonetaryAmount
instances given a currency. |
static MonetaryOperator |
MonetaryRoundings.getCashRounding(CurrencyUnit currency,
long timestamp)
Creates an
MonetaryOperator for rounding MonetaryAmount
instances given a currency, hereby the rounding must be valid for the
given timestamp. |
static MonetaryOperator |
MonetaryRoundings.getRounding()
Creates a rounding that can be added as
MonetaryOperator to
chained calculations. |
static MonetaryOperator |
MonetaryRoundings.getRounding(CurrencyUnit currency)
Creates an
MonetaryOperator for rounding MonetaryAmount
instances given a currency. |
static MonetaryOperator |
MonetaryRoundings.getRounding(CurrencyUnit currency,
long timestamp)
Creates an
MonetaryOperator for rounding MonetaryAmount
instances given a currency, hereby the rounding must be valid for the
given timestamp. |
static MonetaryOperator |
MonetaryRoundings.getRounding(MonetaryContext monetaryContext)
Creates an rounding instance using
RoundingMode.UP rounding. |
static MonetaryOperator |
MonetaryRoundings.getRounding(java.lang.String customRoundingId)
Access an
MonetaryOperator for custom rounding
MonetaryAmount instances. |
Modifier and Type | Method and Description |
---|---|
MonetaryAmount |
MonetaryAmount.with(MonetaryOperator operator)
Returns an operated object of the same type as this object with the operation made.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CurrencyConversion
This interface defines a
CurrencyConversion that is converting to a
specific target CurrencyUnit . |
Modifier and Type | Method and Description |
---|---|
MonetaryOperator |
AmountStyle.getDisplayConversion()
Get the conversion applied before formatting.
|
MonetaryOperator |
AmountStyle.getParseConversion()
Get the conversion applied after parsing.
|
Modifier and Type | Method and Description |
---|---|
AmountStyle.Builder |
AmountStyle.Builder.setDisplayConversion(MonetaryOperator conversion)
Sets the conversion to be applied before formatting.
|
AmountStyle.Builder |
AmountStyle.Builder.setParseConversion(MonetaryOperator conversion)
Sets the conversion to be applied after parsing.
|
Modifier and Type | Method and Description |
---|---|
MonetaryOperator |
RoundingProviderSpi.getCashRounding(CurrencyUnit currency)
Access the current valid rounding for the given
CurrencyUnit . |
MonetaryOperator |
RoundingProviderSpi.getCashRounding(CurrencyUnit currency,
long timestamp)
Access the cash rounding for the given
CurrencyUnit , that was
valid at the given timestamp. |
MonetaryOperator |
RoundingProviderSpi.getCustomRounding(java.lang.String customRoundingId)
Access an
MonetaryOperator for custom rounding
MonetaryAmount instances. |
MonetaryOperator |
RoundingProviderSpi.getRounding(CurrencyUnit currency)
Access the current valid rounding for the given
CurrencyUnit . |
MonetaryOperator |
RoundingProviderSpi.getRounding(CurrencyUnit currency,
long timestamp)
Access the rounding for the given
CurrencyUnit , that was valid at
the given timestamp. |
MonetaryOperator |
RoundingProviderSpi.getRounding(MonetaryContext monetaryContext)
Access a rounding that models the given
MonetaryContext . |