Class DefaultBigDecimalMath.LocalMathContext

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    DefaultBigDecimalMath

    public static class DefaultBigDecimalMath.LocalMathContext
    extends java.lang.Object
    implements java.lang.AutoCloseable
    The local context used to push and pop a MathContext on the stack.

    The recommended way to use this class is to use the try-with-resources.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.math.MathContext mathContext  
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalMathContext​(java.math.MathContext mathContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      • Methods inherited from class java.lang.Object

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

      • mathContext

        public final java.math.MathContext mathContext
    • Constructor Detail

      • LocalMathContext

        LocalMathContext​(java.math.MathContext mathContext)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable