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
Author:
Amol S. Deshmukh < amolweb at ya hoo dot com >
  • Field Details

    • FALSE

      public static final BoolEval FALSE
    • TRUE

      public static final BoolEval TRUE
  • Method Details

    • 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 interface NumericValueEval
    • getStringValue

      public String getStringValue()
      Specified by:
      getStringValue in interface StringValueEval
      Returns:
      never null, possibly empty string.
    • toString

      public String toString()
      Overrides:
      toString in class Object