- All Superinterfaces:
MonetaryOperator
public interface MonetaryRounding extends MonetaryOperator
Interface representing a monetary rounding. Rounding must not necessarily represent roundings in a pure arithmetical sense. Basically a rounding
can scale an amount arbitrarily.
Implementation specification
Implementations of this interface must be- final
- immutable
- thread-safe
- serializable
-
Method Summary
Modifier and Type Method Description RoundingContext
getRoundingContext()
Access the rounding's context, which gives more details of the rounding instances such as The rounding's name (required) Its provider (required) Its base currency its scale and rounding mode any other attributes useful to describe the rounding
-
Method Details
-
getRoundingContext
RoundingContext getRoundingContext()Access the rounding's context, which gives more details of the rounding instances such as- The rounding's name (required)
- Its provider (required)
- Its base currency
- its scale and rounding mode
- any other attributes useful to describe the rounding
- Returns:
- the rounding's context, never null.
-