Package org.apache.poi.ss.formula.eval
Class NumberEval
- java.lang.Object
-
- org.apache.poi.ss.formula.eval.NumberEval
-
- All Implemented Interfaces:
NumericValueEval
,StringValueEval
,ValueEval
public final class NumberEval extends java.lang.Object implements NumericValueEval, StringValueEval
-
-
Field Summary
Fields Modifier and Type Field Description static NumberEval
ZERO
-
Constructor Summary
Constructors Constructor Description NumberEval(double value)
NumberEval(Ptg ptg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getNumberValue()
java.lang.String
getStringValue()
java.lang.String
toString()
-
-
-
Field Detail
-
ZERO
public static final NumberEval ZERO
-
-
Constructor Detail
-
NumberEval
public NumberEval(Ptg ptg)
-
NumberEval
public NumberEval(double value)
-
-
Method Detail
-
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 final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-