Top Description Fields Constructors Methods
javax.money

public final Class CurrencyContext

extends AbstractContext
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable

This class models the attributable context of javax.money.CurrencyUnit instances. It provides information about

Instances of this class must be created using the javax.money.CurrencyContextBuilder. Typically the contexts are created and assigned by the classes that implement the javax.money.spi.CurrencyProviderSpi. The according implementation classes should document, which attributes are available.

This class is immutable, serializable and thread-safe.

Author
Anatole Tresch

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from javax.money.AbstractContext:
dataKEY_PROVIDER

Constructor Summary

AccessConstructor and Description
pack-priv
CurrencyContext(CurrencyContextBuilder
the corresponding builder, not null.
builder
)

Constructor, used from the javax.money.CurrencyContextBuilder.

Method Summary

Modifier and TypeMethod and Description
public CurrencyContextBuilder

Returns:

a new Builder instance, preinitialized with the values from this instance.
toBuilder
()

Allows to convert a instance into the corresponding javax.money.CurrencyContextBuilder, which allows to change the values and of another javax.money.CurrencyContext instance.

Inherited from javax.money.AbstractContext:
equalsgetgetgetBooleangetDoublegetFloatgetIntgetKeysgetLonggetProviderNamegetTextgetTypehashCodeisEmptytoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.money.AbstractContext.serialVersionUID.

Constructor Detail

CurrencyContextback to summary
pack-priv CurrencyContext(CurrencyContextBuilder builder)

Constructor, used from the javax.money.CurrencyContextBuilder.

Parameters
builder:CurrencyContextBuilder

the corresponding builder, not null.

Method Detail

toBuilderback to summary
public CurrencyContextBuilder toBuilder()

Allows to convert a instance into the corresponding javax.money.CurrencyContextBuilder, which allows to change the values and of another javax.money.CurrencyContext instance.

Returns:CurrencyContextBuilder

a new Builder instance, preinitialized with the values from this instance.