- java.lang.Object
-
- javax.money.AbstractContext
-
- javax.money.format.AmountFormatContext
-
- All Implemented Interfaces:
java.io.Serializable
public final class AmountFormatContext extends AbstractContext
TheAmountFormatContextprovides details about aMonetaryAmountFormat.- Author:
- Anatole Tresch
- See Also:
MonetaryAmountFormat.getContext(), Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.money.AbstractContext
KEY_PROVIDER
-
-
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 Detail
-
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
public MonetaryAmountFactory<?> 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
public AmountFormatContextBuilder toBuilder()
Creates a new builder instances, initialized with the data from this one.- Returns:
- a new
AmountFormatContextBuilderinstance, never null.
-
-