|
||||||||||
| 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.BooleanValue
public class BooleanValue
A value of type boolean. Valid values are TRUE, FALSE and NULL_VALUE.
| Field Summary | |
|---|---|
static BooleanValue |
FALSE
A single static FALSE value. |
static BooleanValue |
TRUE
A single static TRUE value. |
| Method Summary | |
|---|---|
int |
compareTo(Value other)
Compares this cell to another cell of the same type. |
static BooleanValue |
getInstance(java.lang.Boolean value)
Static method to return a BooleanValue based on a given java boolean. |
static BooleanValue |
getNullValue()
Static method to return the null value (same one for all calls) |
java.lang.Boolean |
getObjectToFormat()
Uses an ibm.icu.text.UFormat instance to format Values. |
ValueType |
getType()
Returns the type of this cell. |
boolean |
getValue()
Returns the underlying value. |
int |
hashCode()
Returns a hash code for this boolean 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 cell's value is a logical null. |
java.lang.String |
toString()
Returns the value with 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 |
| Field Detail |
|---|
public static final BooleanValue TRUE
public static final BooleanValue FALSE
| Method Detail |
|---|
public static BooleanValue getNullValue()
public static BooleanValue getInstance(java.lang.Boolean value)
value - The java Boolean value to be represented.
public ValueType getType()
Value
getType in class Valuepublic boolean getValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isNull()
isNull in class Valuepublic int compareTo(Value other)
other - Other cell.
public int hashCode()
hashCode in class Valuepublic java.lang.Boolean 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 | |||||||||