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 Object implements NumericValueEval, StringValueEval
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBooleanValue()
Hyperlink
getHyperlink()
double
getNumberValue()
String
getStringValue()
void
setHyperlink(Hyperlink hyperlink)
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 representingb
.
-
getBooleanValue
public boolean getBooleanValue()
-
getNumberValue
public double getNumberValue()
- Specified by:
getNumberValue
in interfaceNumericValueEval
-
getStringValue
public String getStringValue()
- Specified by:
getStringValue
in interfaceStringValueEval
- Returns:
- never
null
, possibly empty string.
-
setHyperlink
public void setHyperlink(Hyperlink hyperlink)
-
getHyperlink
public Hyperlink getHyperlink()
-
-