public class GeoPointData extends Object implements IAnswerData, IExprDataType
| Modifier and Type | Field and Description |
|---|---|
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() |
String |
getDisplayText() |
double |
getPart(int i) |
Object |
getValue() |
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
void |
setValue(Object o) |
Boolean |
toBoolean() |
Double |
toNumeric() |
String |
toString() |
UncastData |
uncast()
Data types can be uncast if they are expected to be used
in different contexts.
|
void |
writeExternal(DataOutputStream out) |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwrapDatapublic static final int REQUIRED_ARRAY_SIZE
public static final double MISSING_VALUE
public static final double NO_ACCURACY_VALUE
public GeoPointData()
public GeoPointData(GeoPointData gpd)
public GeoPointData(double[] gp)
public IAnswerData clone()
clone in interface IAnswerDataclone in class Objectpublic String getDisplayText()
getDisplayText in interface IAnswerData@NotNull public Object getValue()
getValue in interface IAnswerDatapublic void setValue(Object o)
setValue in interface IAnswerDatao - the value of this answerdata object. Cannot be null.
Null Data will not overwrite existing values.public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException
readExternal in interface ExternalizableIOExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic UncastData uncast()
IAnswerDatauncast in interface IAnswerDatapublic GeoPointData cast(UncastData data) throws IllegalArgumentException
IAnswerDatacast in interface IAnswerDatadata - An uncast data value which is compatible
with this data typeIllegalArgumentException - If the uncast data is
not in a compatible formatpublic Boolean toBoolean()
toBoolean in interface IExprDataTypepublic Double toNumeric()
toNumeric in interface IExprDataTypepublic String toString()
toString in interface IExprDataTypetoString in class Objectpublic double getPart(int i)
Copyright © 2024. All rights reserved.