javax.money.format.MonetaryAmountFormat. In general it is determined by the
implementation, what formats are provided. Nevertheless the following queries must be supported:
.DecimalFormat#getAvailableLocales().This class is immutable, thread-safe and serializable.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | KEY_QUERY_FORMAT_NAME
Key used for the format name attribute. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | AmountFormatQuery(AmountFormatQueryBuilder
the corresponding builder)javax.money.format.AmountFormatQueryBuilder, not null.Constructor, used from the Builder. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Locale | |
| public MonetaryAmountFactory | Returns: the monetary context, ornull.Gets the |
| public static AmountFormatQuery | Returns: a new query instancethe target locale, not null. locale, String... the providers to be used, not null. providers)Creates a simple format query based on a single Locale, similar to |
| public AmountFormatQueryBuilder | Returns: a new preinitialized builder, never null.Get a |
| KEY_QUERY_FORMAT_NAME | back to summary |
|---|---|
| pack-priv static final String KEY_QUERY_FORMAT_NAME Key used for the format name attribute. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| AmountFormatQuery | back to summary |
|---|---|
| pack-priv AmountFormatQuery(AmountFormatQueryBuilder builder) Constructor, used from the Builder.
| |
| getFormatName | back to summary |
|---|---|
| public String getFormatName() Gets a style's id.
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Gets a Locale to be applied.
| |
| getMonetaryAmountFactory | back to summary |
|---|---|
| public MonetaryAmountFactory Gets the
| |
| of | back to summary |
|---|---|
| public static AmountFormatQuery of(Locale locale, String... providers) Creates a simple format query based on a single Locale, similar to
| |
| toBuilder | back to summary |
|---|---|
| public AmountFormatQueryBuilder toBuilder() Get a
| |