Class BigDecNumberFactory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.math.MathContext mc  
      static java.math.BigDecimal MINUSONE  
      static java.math.BigDecimal TWO  
    • Constructor Summary

      Constructors 
      Constructor Description
      BigDecNumberFactory​(java.math.MathContext mc)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object createNumber​(boolean value)
      Create a number object with given boolean value
      java.lang.Object createNumber​(double value)
      Creates a number object with given double value.
      java.lang.Object createNumber​(float value)
      Create a number object with given float value
      java.lang.Object createNumber​(int value)
      Create a number object with given int value
      java.lang.Object createNumber​(long value)
      Create a number object with given long value
      java.lang.Object createNumber​(short value)
      Create a number object with given short value
      java.lang.Object createNumber​(Complex value)
      Creates a number from a given complex value.
      java.lang.Object createNumber​(java.lang.Number value)
      Creates a number object from a class implementing Number, May actually just return the class.
      java.lang.Object createNumber​(java.lang.String value)
      Creates a number object and initializes its value.
      JepComponent getLightWeightInstance()
      Gets a light-weight instance suitable for using in multiple threads.
      java.math.MathContext getMathContext()  
      java.lang.Object getMinusOne()
      Return an object representing ZERO-ONE.
      java.lang.Object getOne()
      Return an object representing ONE the multiplicative identity.
      java.lang.Object getTwo()
      Return an object representing ONE+ONE.
      java.lang.Object getZero()
      Return an object representing ZERO the additive identity.
      void init​(Jep jep)
      Initialize the component.
      void setMathContext​(java.math.MathContext mc)  
      • Methods inherited from class java.lang.Object

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

      • TWO

        public static final java.math.BigDecimal TWO
      • MINUSONE

        public static final java.math.BigDecimal MINUSONE
      • mc

        protected java.math.MathContext mc
    • Constructor Detail

      • BigDecNumberFactory

        public BigDecNumberFactory​(java.math.MathContext mc)
        Parameters:
        mc -