|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.datatable.value.Value
com.google.visualization.datasource.datatable.value.NumberValue
public class NumberValue
A value of type number. Valid values are double-precision floating-point numbers (including integers) or NULL_VALUE.
| Constructor Summary | |
|---|---|
NumberValue(double value)
Create a new number value. |
|
| Method Summary | |
|---|---|
int |
compareTo(Value other)
Compares this value to another value of the same type. |
static NumberValue |
getNullValue()
Static method to return the null value (same one for all calls). |
java.lang.Number |
getObjectToFormat()
Uses an ibm.icu.text.UFormat instance to format Values. |
ValueType |
getType()
Returns the type of this cell. |
double |
getValue()
Returns the underlying value. |
int |
hashCode()
Returns a hash code for this number value. |
protected java.lang.String |
innerToQueryString()
Returns a string that, when parsed by the query parser, should return an identical value. |
boolean |
isNull()
Tests whether this value is a logical null. |
java.lang.String |
toString()
Returns the number as a String using default formatting. |
| Methods inherited from class com.google.visualization.datasource.datatable.value.Value |
|---|
equals, getLocalizedComparator, getNullValueFromValueType, toQueryString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NumberValue(double value)
value - The underlying value.| Method Detail |
|---|
public static NumberValue getNullValue()
public ValueType getType()
Value
getType in class Valuepublic double getValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isNull()
isNull in class Valuepublic int compareTo(Value other)
other - Other value.
public int hashCode()
hashCode in class Valuepublic java.lang.Number getObjectToFormat()
Value
getObjectToFormat in class Valueprotected java.lang.String innerToQueryString()
innerToQueryString in class Value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||