Package org.apache.poi.ss.formula.eval
Class BoolEval
- java.lang.Object
-
- org.apache.poi.ss.formula.eval.BoolEval
-
- All Implemented Interfaces:
NumericValueEval
,StringValueEval
,ValueEval
public final class BoolEval extends java.lang.Object implements NumericValueEval, StringValueEval
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBooleanValue()
double
getNumberValue()
java.lang.String
getStringValue()
java.lang.String
toString()
static BoolEval
valueOf(boolean b)
Convenience method for the following:
(b ? BoolEval.TRUE : BoolEval.FALSE)
-
-
-
Method Detail
-
valueOf
public static BoolEval valueOf(boolean b)
Convenience method for the following:
(b ? BoolEval.TRUE : BoolEval.FALSE)
- Returns:
- the BoolEval instance representing b.
-
getBooleanValue
public boolean getBooleanValue()
-
getNumberValue
public double getNumberValue()
- Specified by:
getNumberValue
in interfaceNumericValueEval
-
getStringValue
public java.lang.String getStringValue()
- Specified by:
getStringValue
in interfaceStringValueEval
- Returns:
- never
null
, possibly empty string.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-