Package | Description |
---|---|
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 |
---|---|
AmountStyle |
AmountStyle.Builder.build()
Creates a new
AmountStyle . |
AmountStyle |
MonetaryAmountFormat.getAmountStyle()
The
AmountStyle to be applied when a MonetaryAmount is formatted. |
static AmountStyle |
AmountStyle.of(java.util.Locale locale)
Get an
AmountStyle given a Locale . |
Modifier and Type | Method and Description |
---|---|
static MonetaryAmountFormat |
MonetaryFormats.getAmountFormat(AmountStyle style)
Access an
MonetaryAmountFormat given a AmountStyle . |
void |
MonetaryAmountFormat.setAmountStyle(AmountStyle style)
Set the
AmountStyle to be used. |
Constructor and Description |
---|
AmountStyle.Builder(AmountStyle style)
Creates a new
AmountStyle.Builder . |
Modifier and Type | Method and Description |
---|---|
AmountStyle |
AmountStyleProviderSpi.getAmountStyle(java.util.Locale locale)
Get an
AmountStyle for the given Locale . |
Modifier and Type | Method and Description |
---|---|
MonetaryAmountFormat |
MonetaryAmountFormatProviderSpi.getAmountFormat(AmountStyle formatStyle)
Create a new
MonetaryAmountFormat for the given input. |