Class IntegerFunctionTable

  • All Implemented Interfaces:
    JepComponent, java.io.Serializable

    public class IntegerFunctionTable
    extends FunctionTable
    Function table for function which work with Integer numbers.
    See Also:
    Serialized Form
    • Constructor Detail

      • IntegerFunctionTable

        public IntegerFunctionTable​(FieldI field)
      • IntegerFunctionTable

        protected IntegerFunctionTable​(java.util.Map<java.lang.String,​PostfixMathCommandI> tbl)
    • Method Detail

      • shallowCopy

        public FunctionTable shallowCopy()
        Description copied from class: FunctionTable
        Returns a new shallow copy of this function table. Calls the FunctionTable.threadSafeMapCopy() method to ensure the table is safe to use a separate thread. All sub-classes should override this methods to create a function table of the matching type. A typical implementation would be
                  @Override
                  public FunctionTable shallowCopy() {
                      Map<String,PostfixMathCommandI> newMap = this.threadSafeMapCopy();
                return new myFunctionTable(newMap);
                  }
         
        using the FunctionTable.threadSafeMapCopy() method to return a copy of the map of operators and a constructor taking this map which uses the FunctionTable(Map) constructor.
        Overrides:
        shallowCopy in class FunctionTable
        Returns:
        a new shallow copy of this function table