Class PrimitiveValue
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.PrimitiveValue
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable,java.io.Serializable,java.lang.Comparable<PrimitiveValue>
public class PrimitiveValue extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable, java.io.Serializable, java.lang.Comparable<PrimitiveValue>
Stores one primitive value: Double, Long or String (null is represented as "" -NULL).Such a type is needed because GWT does not support serialization fields of Object or Serializable type.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PrimitiveValueNULL
-
Constructor Summary
Constructors Constructor Description PrimitiveValue(java.lang.Double value)PrimitiveValue(java.lang.Long value)PrimitiveValue(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PrimitiveValue o)java.lang.Comparable<?>getComparableValue()DataTypeCodegetDataType()java.lang.StringtoString()
-
-
-
Field Detail
-
NULL
public static PrimitiveValue NULL
-
-
Method Detail
-
getDataType
public DataTypeCode getDataType()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(PrimitiveValue o)
- Specified by:
compareToin interfacejava.lang.Comparable<PrimitiveValue>
-
getComparableValue
public java.lang.Comparable<?> getComparableValue()
-
-