java.lang.Object
javax.money.AbstractContext
javax.money.format.AmountFormatContext
- All Implemented Interfaces:
java.io.Serializable
public final class AmountFormatContext extends AbstractContext
The
AmountFormatContext
provides details about a MonetaryAmountFormat
.- Author:
- Anatole Tresch
- See Also:
MonetaryAmountFormat.getContext()
, Serialized Form
-
Field Summary
-
Method Summary
Modifier and Type Method Description java.lang.String
getFormatName()
Access the style'sLocale
.java.util.Locale
getLocale()
Access the context's Locale.MonetaryAmountFactory<?>
getParseFactory()
Access the format'sMonetaryAmountFactory
that is used to of new amounts during parsing.AmountFormatContextBuilder
toBuilder()
Creates a new builder instances, initialized with the data from this one.
-
Method Details
-
getFormatName
public java.lang.String getFormatName()Access the style'sLocale
.- Returns:
- the
Locale
, nevernull
.
-
getLocale
public java.util.Locale getLocale()Access the context's Locale.- Returns:
- the Locale, or null.
-
getParseFactory
Access the format'sMonetaryAmountFactory
that is used to of new amounts during parsing. If not set explicitly, the defaultMonetaryAmountFactory
is used.- Returns:
- the
MonetaryAmountFactory
, nevernull
.
-
toBuilder
Creates a new builder instances, initialized with the data from this one.- Returns:
- a new
AmountFormatContextBuilder
instance, never null.
-