Module java.money
Package javax.money

Class CurrencyContext

java.lang.Object
javax.money.AbstractContext
javax.money.CurrencyContext
All Implemented Interfaces:
java.io.Serializable

public final class CurrencyContext
extends AbstractContext
implements java.io.Serializable
This class models the attributable context of CurrencyUnit instances. It provides information about
  • the provider that provided the instance (required)
  • the target timestamp / temporal unit
  • any other attributes, identified by the attribute type, e.g. regions, tenants etc.

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

This class is immutable, serializable and thread-safe.

Author:
Anatole Tresch
See Also:
Serialized Form