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.StringgetFormatName()Access the style'sLocale.java.util.LocalegetLocale()Access the context's Locale.MonetaryAmountFactory<?>getParseFactory()Access the format'sMonetaryAmountFactorythat is used to of new amounts during parsing.AmountFormatContextBuildertoBuilder()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'sMonetaryAmountFactorythat is used to of new amounts during parsing. If not set explicitly, the defaultMonetaryAmountFactoryis used.- Returns:
- the
MonetaryAmountFactory, nevernull.
-
toBuilder
Creates a new builder instances, initialized with the data from this one.- Returns:
- a new
AmountFormatContextBuilderinstance, never null.
-