Module java.money
Package javax.money

Class DefaultMonetaryRoundingsSingletonSpi.DefaultCurrencyRounding

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MonetaryAmount apply​(MonetaryAmount amount)
      Applies the operator on the given amount.
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCurrencyRounding

        private DefaultCurrencyRounding()
    • Method Detail

      • getRoundingContext

        public RoundingContext getRoundingContext()
        Description copied from interface: MonetaryRounding
        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
        Specified by:
        getRoundingContext in interface MonetaryRounding
        Returns:
        the rounding's context, never null.