Class BigDecimalFunctionTable
java.lang.Object
com.singularsys.jep.FunctionTable
com.singularsys.jep.bigdecimal.BigDecFunctionTable
com.singularsys.extensions.field.functions.BigDecimalFunctionTable
- All Implemented Interfaces:
FixedPrecisionFunctionI,JepComponent,Serializable
Function table for function which work with BigDecimal numbers.
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.bigdecimal.BigDecFunctionTable
mc, scaleFields inherited from class com.singularsys.jep.FunctionTable
table -
Constructor Summary
ConstructorsModifierConstructorDescriptionBigDecimalFunctionTable(MathContext mc, FieldI field) BigDecimalFunctionTable(MathContext mc, FieldI field, int scale) protected -
Method Summary
Modifier and TypeMethodDescriptionReturns a new shallow copy of this function table.Methods inherited from class com.singularsys.jep.bigdecimal.BigDecFunctionTable
getDecimalPlaces, getMathContext, setDecimalPlaces, setMathContextMethods inherited from class com.singularsys.jep.FunctionTable
addFunction, addFunctionIfSet, clear, containsKey, containsValue, copyFunctionsFrom, entrySet, getFunction, getLightWeightInstance, init, isEmpty, keySet, remove, size, threadSafeMapCopy, toString, values
-
Constructor Details
-
BigDecimalFunctionTable
-
BigDecimalFunctionTable
-
BigDecimalFunctionTable
-
-
Method Details
-
shallowCopy
Description copied from class:FunctionTableReturns a new shallow copy of this function table. Calls theFunctionTable.threadSafeMapCopy()method to ensure the table is safe to use a separate thread. All subclasses should override this method 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 theFunctionTable.threadSafeMapCopy()method to return a copy of the map of functions and a constructor taking this map which uses theFunctionTable(Map)constructor.- Overrides:
shallowCopyin classBigDecFunctionTable- Returns:
- a new shallow copy of this function table
-