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 PrimitiveValue
NULL
-
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 int
compareTo(PrimitiveValue o)
java.lang.Comparable<?>
getComparableValue()
DataTypeCode
getDataType()
java.lang.String
toString()
-
-
-
Field Detail
-
NULL
public static PrimitiveValue NULL
-
-
Method Detail
-
getDataType
public DataTypeCode getDataType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(PrimitiveValue o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PrimitiveValue>
-
getComparableValue
public java.lang.Comparable<?> getComparableValue()
-
-