Class Fixed2ArgFunction
java.lang.Object
org.apache.poi.ss.formula.functions.Fixed2ArgFunction
- All Implemented Interfaces:
Function,Function2Arg
- Direct Known Subclasses:
ConcatEval,Countif,Delta,Frequency,Intercept,IntersectionEval,LinearRegressionFunction,MatrixFunction.TwoArrayArg,NumericFunction.TwoArg,Quotient,RangeEval,RelationalOperationEval,Rept,Roman,Slope,TwoOperandNumericOperation,WeekNum,XYNumericFunction
Convenience base class for functions that must take exactly two arguments.
- Author:
- Josh Micich
-
Constructor Details
-
Fixed2ArgFunction
public Fixed2ArgFunction()
-
-
Method Details
-
evaluate
- Specified by:
evaluatein interfaceFunction- Parameters:
args- the evaluated function arguments. Empty values are represented withBlankEvalorMissingArgEval, nevernull.srcRowIndex- row index of the cell containing the formula under evaluationsrcColumnIndex- column index of the cell containing the formula under evaluation- Returns:
- The evaluated result, possibly an
ErrorEval, nevernull. Note - Excel uses the error code #NUM! instead of IEEE NaN, so when numeric functions evaluate toDouble.NaNbe sure to translate the result toErrorEval.NUM_ERROR.
-