Top Description Fields Constructors Methods
javax.money.format

public final Class AmountFormatContext

extends AbstractContext
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.util.Locale, javax.money.AbstractContext, .MonetaryAmountFactory

The AmountFormatContext provides details about a javax.money.format.MonetaryAmountFormat.
Author
Anatole Tresch
See Also
MonetaryAmountFormat#getContext()

Field Summary

Modifier and TypeField and Description
pack-priv static final String
KEY_FORMAT_NAME

Key used for the format name attribute.

Inherited from javax.money.AbstractContext:
KEY_PROVIDER

Constructor Summary

AccessConstructor and Description
pack-priv
AmountFormatContext(AmountFormatContextBuilder
the corresponding builder.
builder
)

Creates a new instance of javax.money.format.AmountFormatContext.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the Locale, never null.
getFormatName
()

Access the style's Locale.

public Locale

Returns:

the Locale, or null.
getLocale
()

Access the context's Locale.

public MonetaryAmountFactory<?>

Returns:

the javax.money.MonetaryAmountFactory, never null.
getParseFactory
()

Access the format's javax.money.MonetaryAmountFactory that is used to of new amounts during parsing.

public AmountFormatContextBuilder

Returns:

a new javax.money.format.AmountFormatContextBuilder instance, never null.
toBuilder
()

Creates a new builder instances, initialized with the data from this one.

Inherited from javax.money.AbstractContext:
equalsgetgetgetBooleangetDoublegetFloatgetIntgetKeysgetLonggetProviderNamegetTextgetTypehashCodeisEmptytoString

Field Detail

KEY_FORMAT_NAMEback to summary
pack-priv static final String KEY_FORMAT_NAME

Key used for the format name attribute.

Constructor Detail

AmountFormatContextback to summary
pack-priv AmountFormatContext(AmountFormatContextBuilder builder)

Creates a new instance of javax.money.format.AmountFormatContext.

Parameters
builder:AmountFormatContextBuilder

the corresponding builder.

Method Detail

getFormatNameback to summary
public String getFormatName()

Access the style's Locale.

Returns:String

the Locale, never null.

getLocaleback to summary
public Locale getLocale()

Access the context's Locale.

Returns:Locale

the Locale, or null.

getParseFactoryback to summary
public MonetaryAmountFactory<?> getParseFactory()

Access the format's javax.money.MonetaryAmountFactory that is used to of new amounts during parsing. If not set explicitly, the default javax.money.MonetaryAmountFactory is used.

Returns:MonetaryAmountFactory<?>

the javax.money.MonetaryAmountFactory, never null.

toBuilderback to summary
public AmountFormatContextBuilder toBuilder()

Creates a new builder instances, initialized with the data from this one.

Returns:AmountFormatContextBuilder

a new javax.money.format.AmountFormatContextBuilder instance, never null.