public interface ArrayFunction
Modifier and Type | Method and Description |
---|---|
ValueEval |
evaluateArray(ValueEval[] args,
int srcRowIndex,
int srcColumnIndex) |
default ValueEval |
evaluateOneArrayArg(ValueEval arg0,
int srcRowIndex,
int srcColumnIndex,
java.util.function.Function<ValueEval,ValueEval> evalFunc) |
default ValueEval |
evaluateTwoArrayArgs(ValueEval arg0,
ValueEval arg1,
int srcRowIndex,
int srcColumnIndex,
java.util.function.BiFunction<ValueEval,ValueEval,ValueEval> evalFunc)
Evaluate an array function with two arguments.
|
ValueEval evaluateArray(ValueEval[] args, int srcRowIndex, int srcColumnIndex)
args
- the evaluated function arguments. Empty values are represented with
BlankEval
or MissingArgEval
, never null
.srcRowIndex
- row index of the cell containing the formula under evaluationsrcColumnIndex
- column index of the cell containing the formula under evaluationErrorEval
, never null
.
Note - Excel uses the error code #NUM! instead of IEEE NaN, so when
numeric functions evaluate to Double.NaN
be sure to translate the result to ErrorEval.NUM_ERROR
.default ValueEval evaluateTwoArrayArgs(ValueEval arg0, ValueEval arg1, int srcRowIndex, int srcColumnIndex, java.util.function.BiFunction<ValueEval,ValueEval,ValueEval> evalFunc)
arg0
- the first function argument. Empty values are represented with
BlankEval
or MissingArgEval
, never null
arg1
- the first function argument. Empty values are represented withsrcRowIndex
- row index of the cell containing the formula under evaluationsrcColumnIndex
- column index of the cell containing the formula under evaluationErrorEval
, never null
.
Note - Excel uses the error code #NUM! instead of IEEE NaN, so when
numeric functions evaluate to Double.NaN
be sure to translate the result to ErrorEval.NUM_ERROR
.Copyright 2020 The Apache Software Foundation or its licensors, as applicable.