Class RoundingContext

All Implemented Interfaces:, CurrencySupplier

public final class RoundingContext
extends AbstractContext
implements, CurrencySupplier
This class models the spec/configuration for a rounding, modeled as MonetaryRounding in a platform independent way. Each RoundingContext instance hereby has a roundingId, which links to the RoundingProviderSpi that must of the according rounding instance. The default roundingId is default.

A RoundingContext can take up arbitrary attributes that must be documented by the RoundingProviderSpi implementations.

Examples for such additional attributes are RoundingMode, MathContext, additional regional information, e.g. if a given rounding is targeting cash rounding.

This class is immutable, serializable, thread-safe.

Anatole Tresch
See Also:
Serialized Form