Top Description Methods
javax.money

public Interface MonetaryRounding

extends MonetaryOperator
Known Direct Implementers
javax.money.DefaultMonetaryRoundingsSingletonSpi.DefaultCurrencyRounding

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 Implementations of this interface should be

Method Summary

Modifier and TypeMethod and Description
public RoundingContext

Returns:

the rounding's context, never null.
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
Inherited from javax.money.MonetaryOperator:
apply

Method Detail

getRoundingContextback to summary
public 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:RoundingContext

the rounding's context, never null.