From: Nick Burch Date: Fri, 25 Jul 2014 16:42:31 +0000 (+0000) Subject: Complete evaluation support for multi-sheet references for bug #55906 X-Git-Tag: REL_3_11_BETA1~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cd7de7d482ec06e4c9ab8050935cbf12d452878b;p=poi.git Complete evaluation support for multi-sheet references for bug #55906 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613467 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/ss/formula/functions/CountUtils.java b/src/java/org/apache/poi/ss/formula/functions/CountUtils.java index 6c5fbce7dc..270f787bc7 100644 --- a/src/java/org/apache/poi/ss/formula/functions/CountUtils.java +++ b/src/java/org/apache/poi/ss/formula/functions/CountUtils.java @@ -17,6 +17,7 @@ package org.apache.poi.ss.formula.functions; +import org.apache.poi.ss.formula.ThreeDEval; import org.apache.poi.ss.formula.TwoDEval; import org.apache.poi.ss.formula.eval.RefEval; import org.apache.poi.ss.formula.eval.ValueEval; @@ -42,30 +43,32 @@ final class CountUtils { boolean matches(TwoDEval x, int rowIndex, int columnIndex); } - /** - * @return the number of evaluated cells in the range that match the specified criteria - */ - public static int countMatchingCellsInArea(TwoDEval areaEval, I_MatchPredicate criteriaPredicate) { - int result = 0; - - int height = areaEval.getHeight(); - int width = areaEval.getWidth(); - for (int rrIx=0; rrIx=getHeight()) { throw new IllegalArgumentException("row index out of range"); }