org.apache.poi.ss.formula.functions
Class BooleanFunction
- java.lang.Object
-
- org.apache.poi.ss.formula.functions.BooleanFunction
-
- All Implemented Interfaces:
- Function
public abstract class BooleanFunction extends java.lang.Object implements Function
Here are the general rules concerning Boolean functions:- Blanks are ignored (not either true or false)
- Strings are ignored if part of an area ref or cell ref, otherwise they must be 'true' or 'false'
- Numbers: 0 is false. Any other number is TRUE
- Areas: *all* cells in area are evaluated according to the above rules
-
-
Field Summary
Fields Modifier and Type Field and Description static FunctionANDstatic FunctionFALSEstatic FunctionNOTstatic FunctionORstatic FunctionTRUE
-
Constructor Summary
Constructors Constructor and Description BooleanFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ValueEvalevaluate(ValueEval[] args, int srcRow, int srcCol)
-
-
-
Field Detail
-
AND
public static final Function AND
-
OR
public static final Function OR
-
FALSE
public static final Function FALSE
-
TRUE
public static final Function TRUE
-
NOT
public static final Function NOT
-
-
Method Detail
-
evaluate
public final ValueEval evaluate(ValueEval[] args, int srcRow, int srcCol)
- Specified by:
evaluatein interfaceFunction- Parameters:
args- the evaluated function arguments. Empty values are represented withBlankEvalorMissingArgEval, nevernull.srcRow- row index of the cell containing the formula under evaluationsrcCol- column index of the cell containing the formula under evaluation- Returns:
- The evaluated result, possibly an
ErrorEval, nevernull. Note - Excel uses the error code #NUM! instead of IEEE NaN, so when numeric functions evaluate toDouble.NaNbe sure to translate the result toErrorEval.NUM_ERROR.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG