|
||||||||||
| 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
public abstract class Value
An abstract value of a single cell in a table. Acts as a base class for all the typed value classes. A value should be an immutable class, because it is reference-copied when cloning complex objects like rows or whole tables.
| Constructor Summary | |
|---|---|
Value()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Checks if this object is equal to the given object. |
static java.util.Comparator<Value> |
getLocalizedComparator(com.ibm.icu.util.ULocale ulocale)
Returns a comparator that compares values according to a given locale (in case of text values). |
static Value |
getNullValueFromValueType(ValueType type)
Returns the NullValue for the given type. |
abstract java.lang.Object |
getObjectToFormat()
Uses an ibm.icu.text.UFormat instance to format Values. |
abstract ValueType |
getType()
Returns the type of this cell. |
abstract int |
hashCode()
Returns the hashcode of this value. |
protected abstract java.lang.String |
innerToQueryString()
Returns a string that, when parsed by the query parser, should return an identical value. |
abstract boolean |
isNull()
Returns whether or not this cell's value is a logical null. |
java.lang.String |
toQueryString()
Returns a string that, when parsed by the query parser, should return an identical value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public Value()
| Method Detail |
|---|
public abstract ValueType getType()
public abstract boolean isNull()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The object with which to compare.
public abstract int hashCode()
hashCode in class java.lang.Objectpublic abstract java.lang.Object getObjectToFormat()
public static Value getNullValueFromValueType(ValueType type)
type - The value type.
public final java.lang.String toQueryString()
protected abstract java.lang.String innerToQueryString()
public static java.util.Comparator<Value> getLocalizedComparator(com.ibm.icu.util.ULocale ulocale)
ulocale - The ULocale defining the order relation of text values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||