Top Description Inners Constructors Methods
org.apache.poi.ss.formula.functions

pack-priv final Class CountUtils

extends Object
Class Inheritance
Imports
org.apache.poi.ss.formula.ThreeDEval, .TwoDEval, org.apache.poi.ss.formula.eval.RefEval, .ValueEval

Common logic for COUNT, COUNTA and COUNTIF

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
public static interface
CountUtils.I_MatchPredicate

Common interface for the matching criteria.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int
countArg(ValueEval eval, CountUtils.I_MatchPredicate criteriaPredicate)

public static int

Returns:

the number of evaluated cells in the range that match the specified criteria
countMatchingCellsInArea
(ThreeDEval areaEval, CountUtils.I_MatchPredicate criteriaPredicate)

public static int

Returns:

the number of evaluated cells in the range that match the specified criteria
countMatchingCellsInRef
(RefEval refEval, CountUtils.I_MatchPredicate criteriaPredicate)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CountUtilsback to summary
private CountUtils()

Method Detail

countArgback to summary
public static int countArg(ValueEval eval, CountUtils.I_MatchPredicate criteriaPredicate)
countMatchingCellsInAreaback to summary
public static int countMatchingCellsInArea(ThreeDEval areaEval, CountUtils.I_MatchPredicate criteriaPredicate)
Returns:int

the number of evaluated cells in the range that match the specified criteria

countMatchingCellsInRefback to summary
public static int countMatchingCellsInRef(RefEval refEval, CountUtils.I_MatchPredicate criteriaPredicate)
Returns:int

the number of evaluated cells in the range that match the specified criteria

org.apache.poi.ss.formula.functions back to summary

public Interface CountUtils.I_MatchAreaPredicate

extends I_MatchPredicate

Method Summary

Modifier and TypeMethod and Description
public boolean
matches(TwoDEval x, int rowIndex, int columnIndex)

Inherited from org.apache.poi.ss.formula.functions.CountUtils.I_MatchPredicate:
matches

Method Detail

matchesback to summary
public boolean matches(TwoDEval x, int rowIndex, int columnIndex)
org.apache.poi.ss.formula.functions back to summary

public Interface CountUtils.I_MatchPredicate

Known Direct Subinterfaces
org.apache.poi.ss.formula.functions.CountUtils.I_MatchAreaPredicate
Known Direct Implementers
org.apache.poi.ss.formula.functions.Countif.MatcherBase

Common interface for the matching criteria.

Method Summary

Modifier and TypeMethod and Description
public boolean

Method Detail

matchesback to summary
public boolean matches(ValueEval x)