public class GeoPointData extends java.lang.Object implements IAnswerData, IExprDataType
Modifier and Type | Field and Description |
---|---|
private double[] |
gp |
private int |
len |
static double |
MISSING_VALUE |
static double |
NO_ACCURACY_VALUE |
static int |
REQUIRED_ARRAY_SIZE |
Constructor and Description |
---|
GeoPointData()
Empty Constructor, necessary for dynamic construction during
deserialization.
|
GeoPointData(double[] gp) |
GeoPointData(GeoPointData gpd) |
Modifier and Type | Method and Description |
---|---|
GeoPointData |
cast(UncastData data)
Casts the provided data into this data type.
|
IAnswerData |
clone() |
private void |
fillArray(double[] gp) |
java.lang.String |
getDisplayText() |
double |
getPart(int i) |
java.lang.Object |
getValue() |
void |
readExternal(java.io.DataInputStream in,
PrototypeFactory pf) |
void |
setValue(java.lang.Object o) |
java.lang.Boolean |
toBoolean() |
java.lang.Double |
toNumeric() |
java.lang.String |
toString() |
UncastData |
uncast()
Data types can be uncast if they are expected to be used
in different contexts.
|
void |
writeExternal(java.io.DataOutputStream out) |
public static final int REQUIRED_ARRAY_SIZE
public static final double MISSING_VALUE
public static final double NO_ACCURACY_VALUE
private double[] gp
private int len
public GeoPointData()
public GeoPointData(GeoPointData gpd)
public GeoPointData(double[] gp)
private void fillArray(double[] gp)
public IAnswerData clone()
clone
in interface IAnswerData
clone
in class java.lang.Object
public java.lang.String getDisplayText()
getDisplayText
in interface IAnswerData
public java.lang.Object getValue()
getValue
in interface IAnswerData
public void setValue(java.lang.Object o)
setValue
in interface IAnswerData
o
- the value of this answerdata object. Cannot be null.
Null Data will not overwrite existing values.public void readExternal(java.io.DataInputStream in, PrototypeFactory pf) throws java.io.IOException, DeserializationException
readExternal
in interface Externalizable
java.io.IOException
DeserializationException
public void writeExternal(java.io.DataOutputStream out) throws java.io.IOException
writeExternal
in interface Externalizable
java.io.IOException
public UncastData uncast()
IAnswerData
uncast
in interface IAnswerData
public GeoPointData cast(UncastData data) throws java.lang.IllegalArgumentException
IAnswerData
cast
in interface IAnswerData
data
- An uncast data value which is compatible
with this data typejava.lang.IllegalArgumentException
- If the uncast data is
not in a compatible formatpublic java.lang.Boolean toBoolean()
toBoolean
in interface IExprDataType
public java.lang.Double toNumeric()
toNumeric
in interface IExprDataType
public java.lang.String toString()
toString
in interface IExprDataType
toString
in class java.lang.Object
public double getPart(int i)