Class BigDecOperatorTable

    • Constructor Detail

      • BigDecOperatorTable

        public BigDecOperatorTable​(java.math.MathContext mc)
      • BigDecOperatorTable

        public BigDecOperatorTable​(OperatorTable2 oldTable,
                                   java.math.MathContext mc)
        Parameters:
        oldTable -
      • BigDecOperatorTable

        public BigDecOperatorTable​(java.math.MathContext mc,
                                   boolean allowStrings)
        Create an operator table specifying the math context and whether string operations can be used
        Parameters:
        mc -
        allowStrings - whether strings can be used.
        Since:
        3.4.0
    • Method Detail

      • setBDPfmcs

        protected void setBDPfmcs()
      • getMathContext

        public java.math.MathContext getMathContext()
      • setMathContext

        public void setMathContext​(java.math.MathContext mc)
      • setAllowStrings

        public void setAllowStrings​(boolean allowStrings)
        Sets the allowStrings flag of the operators.
        Parameters:
        allowStrings -
        Since:
        3.4.0
      • shallowCopy

        public OperatorTableI shallowCopy()
        Description copied from class: EmptyOperatorTable
        Create a new version of this OperatorTable. Operators are copied into new table. However Operators whose pfmc implement JepComponent are duplicated. This means the table could be used in a separate thread without problem. Subclasses should override with method to return a table of the correct type, a typical implementation would be
            @Override
            public OperatorTableI shallowCopy() {
                Map<OperatorKey, Operator> map = this.threadSafeMapCopy();
                return new MyOperatorTable(map);
            }
         
        using the EmptyOperatorTable.threadSafeMapCopy() method to return a copy of the map of operators and a constructor taking this map which uses the EmptyOperatorTable(Map) constructor.
        Specified by:
        shallowCopy in interface OperatorTableI
        Overrides:
        shallowCopy in class StandardOperatorTable2
        Returns:
        a new Table