GlobeCoordinatesValue, Valuepublic class JacksonValueGlobeCoordinates extends JacksonValue implements GlobeCoordinatesValue
GlobeCoordinatesValue.GLOBE_EARTH, GLOBE_MOON, PREC_ARCMINUTE, PREC_ARCSECOND, PREC_CENTI_ARCSECOND, PREC_CENTI_DEGREE, PREC_DECI_ARCSECOND, PREC_DECI_DEGREE, PREC_DEGREE, PREC_HUNDRED_MICRO_DEGREE, PREC_MICRO_DEGREE, PREC_MILLI_ARCSECOND, PREC_MILLI_DEGREE, PREC_TEN_DEGREE, PREC_TEN_MICRO_DEGREEJSON_VALUE_TYPE_ENTITY_ID, JSON_VALUE_TYPE_GLOBE_COORDINATES, JSON_VALUE_TYPE_MONOLINGUAL_TEXT, JSON_VALUE_TYPE_QUANTITY, JSON_VALUE_TYPE_STRING, JSON_VALUE_TYPE_TIME| Constructor | Description |
|---|---|
JacksonValueGlobeCoordinates() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor) |
Accept a ValueVisitor and return its output.
|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String |
getGlobe() |
Get the IRI of the globe that these coordinates refer to.
|
double |
getLatitude() |
Get the latitude of this value in degrees.
|
double |
getLongitude() |
Get the longitude of this value in degrees.
|
double |
getPrecision() |
Get the precision of the value in degrees.
|
JacksonInnerGlobeCoordinates |
getValue() |
Returns the inner value helper object.
|
int |
hashCode() |
|
void |
setValue(JacksonInnerGlobeCoordinates value) |
Sets the inner value helper object to the given value.
|
java.lang.String |
toString() |
getType, setTypepublic JacksonValueGlobeCoordinates()
public JacksonInnerGlobeCoordinates getValue()
public void setValue(JacksonInnerGlobeCoordinates value)
value - new valuepublic double getLatitude()
GlobeCoordinatesValuegetLatitude in interface GlobeCoordinatesValuepublic double getLongitude()
GlobeCoordinatesValuegetLongitude in interface GlobeCoordinatesValuepublic double getPrecision()
GlobeCoordinatesValuegetPrecision in interface GlobeCoordinatesValuepublic java.lang.String getGlobe()
GlobeCoordinatesValueGlobeCoordinatesValue.GLOBE_EARTH.getGlobe in interface GlobeCoordinatesValuepublic <T> T accept(ValueVisitor<T> valueVisitor)
Valuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage