FileDocCategorySizeDatePackage
BoolEval.javaAPI DocApache Poi 3.0.11683Sun Mar 11 12:59:28 GMT 2007org.apache.poi.hssf.record.formula.eval

BoolEval

public class BoolEval extends Object implements NumericValueEval, StringValueEval
author
Amol S. Deshmukh < amolweb at ya hoo dot com >

Fields Summary
private boolean
value
public static final BoolEval
FALSE
public static final BoolEval
TRUE
Constructors Summary
public BoolEval(Ptg ptg)


       
        this.value = ((BoolPtg) ptg).getValue();
    
private BoolEval(boolean value)

        this.value = value;
    
Methods Summary
public booleangetBooleanValue()

        return value;
    
public doublegetNumberValue()

        return value ? (short) 1 : (short) 0;
    
public java.lang.StringgetStringValue()

        return value ? "TRUE" : "FALSE";