Package com.singularsys.jep.bigdecimal
Class BigDecFunctionTable
java.lang.Object
com.singularsys.jep.FunctionTable
com.singularsys.jep.bigdecimal.BigDecFunctionTable
- All Implemented Interfaces:
JepComponent
,Serializable
A function table for BigDecimals.
Has a MathContext field which can be used by functions.
- Version:
- Jep 3.5 Added min, max and various rounding functions.
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.FunctionTable
table
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns a new shallow copy of this function table.Methods inherited from class com.singularsys.jep.FunctionTable
addFunction, clear, containsKey, containsValue, entrySet, getFunction, getLightWeightInstance, init, isEmpty, keySet, remove, size, threadSafeMapCopy, toString, values
-
Constructor Details
-
BigDecFunctionTable
-
BigDecFunctionTable
-
-
Method Details
-
getMathContext
-
setMathContext
-
shallowCopy
Description copied from class:FunctionTable
Returns 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 operators and a constructor taking this map which uses theFunctionTable(Map)
constructor.- Overrides:
shallowCopy
in classFunctionTable
- Returns:
- a new shallow copy of this function table
-