public class AverageIf
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
Baseifs.Aggregator
Implements the details of a specific aggregation function
|
Modifier and Type | Field and Description |
---|---|
static FreeRefFunction |
instance |
Constructor and Description |
---|
AverageIf() |
Modifier and Type | Method and Description |
---|---|
protected ValueEval |
aggregateMatchingCells(Baseifs.Aggregator aggregator,
AreaEval sumRange,
AreaEval testRange,
CountUtils.I_MatchPredicate mp) |
protected static AreaEval |
convertRangeArg(ValueEval eval) |
protected Baseifs.Aggregator |
createAggregator() |
ValueEval |
evaluate(ValueEval[] args,
OperationEvaluationContext ec) |
protected boolean |
hasInitialRange()
Implementations must be stateless.
|
public static final FreeRefFunction instance
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec)
evaluate
in interface FreeRefFunction
args
- the pre-evaluated arguments for this function. args is never null
,
nor are any of its elements.ec
- primarily used to identify the source cell containing the formula being evaluated.
may also be used to dynamically create reference evals.null
. Possibly an instance of ErrorEval
in the case of
a specified Excel error (Exceptions are never thrown to represent Excel errors).protected ValueEval aggregateMatchingCells(Baseifs.Aggregator aggregator, AreaEval sumRange, AreaEval testRange, CountUtils.I_MatchPredicate mp) throws EvaluationException
EvaluationException
protected boolean hasInitialRange()
protected Baseifs.Aggregator createAggregator()
protected static AreaEval convertRangeArg(ValueEval eval) throws EvaluationException
EvaluationException
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.