java.lang.Object
javax.money.AbstractContext
javax.money.format.AmountFormatContext
- All Implemented Interfaces:
Serializable
The
AmountFormatContext provides details about a MonetaryAmountFormat.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final StringKey used for the format name attribute.Fields inherited from class javax.money.AbstractContext
KEY_PROVIDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccess the style'sLocale.Access the context's Locale.Access the format'sMonetaryAmountFactorythat is used to of new amounts during parsing.Creates a new builder instances, initialized with the data from this one.
-
Field Details
-
KEY_FORMAT_NAME
Key used for the format name attribute.- See Also:
-
-
Constructor Details
-
AmountFormatContext
AmountFormatContext(AmountFormatContextBuilder builder) Creates a new instance ofAmountFormatContext.- Parameters:
builder- the corresponding builder.
-
-
Method Details
-
getFormatName
Access the style'sLocale.- Returns:
- the
Locale, nevernull.
-
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.
-