public abstract class FinanceFunction extends java.lang.Object implements Function3Arg, Function4Arg
Modifier and Type | Field and Description |
---|---|
static Function |
FV |
static Function |
NPER |
static Function |
PMT |
static Function |
PV |
Modifier | Constructor and Description |
---|---|
protected |
FinanceFunction() |
Modifier and Type | Method and Description |
---|---|
protected double |
evaluate(double[] ds) |
protected abstract double |
evaluate(double rate,
double arg1,
double arg2,
double arg3,
boolean type) |
ValueEval |
evaluate(int srcRowIndex,
int srcColumnIndex,
ValueEval arg0,
ValueEval arg1,
ValueEval arg2)
|
ValueEval |
evaluate(int srcRowIndex,
int srcColumnIndex,
ValueEval arg0,
ValueEval arg1,
ValueEval arg2,
ValueEval arg3)
|
ValueEval |
evaluate(int srcRowIndex,
int srcColumnIndex,
ValueEval arg0,
ValueEval arg1,
ValueEval arg2,
ValueEval arg3,
ValueEval arg4) |
ValueEval |
evaluate(ValueEval[] args,
int srcRowIndex,
int srcColumnIndex) |
public static final Function FV
public static final Function NPER
public static final Function PMT
public static final Function PV
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2)
Function3Arg
evaluate
in interface Function3Arg
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2, ValueEval arg3)
Function4Arg
evaluate
in interface Function4Arg
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2, ValueEval arg3, ValueEval arg4)
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex)
evaluate
in interface Function
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
.protected double evaluate(double[] ds) throws EvaluationException
EvaluationException
protected abstract double evaluate(double rate, double arg1, double arg2, double arg3, boolean type) throws EvaluationException
EvaluationException
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.