public class GlobeCoordinatesValueImpl extends ValueImpl implements GlobeCoordinatesValue
GlobeCoordinatesValue
.JSON_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
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_DEGREE
Constructor and Description |
---|
GlobeCoordinatesValueImpl(double latitude,
double longitude,
double precision,
String globe)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor)
Accept a ValueVisitor and return its output.
|
boolean |
equals(Object obj) |
String |
getGlobe()
Get the IRI of the globe that these coordinates refer to.
|
ItemIdValue |
getGlobeItemId()
Get the
ItemIdValue 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.
|
org.wikidata.wdtk.datamodel.implementation.GlobeCoordinatesValueImpl.JacksonInnerGlobeCoordinates |
getValue()
Returns the inner value helper object.
|
int |
hashCode() |
String |
toString() |
public GlobeCoordinatesValueImpl(double latitude, double longitude, double precision, String globe)
latitude
- the latitude of the coordinates in degreeslongitude
- the longitude of the coordinates in degreesprecision
- the precision of the coordinates in degreesglobe
- IRI specifying the celestial objects of the coordinatespublic org.wikidata.wdtk.datamodel.implementation.GlobeCoordinatesValueImpl.JacksonInnerGlobeCoordinates getValue()
public double getLatitude()
GlobeCoordinatesValue
getLatitude
in interface GlobeCoordinatesValue
public double getLongitude()
GlobeCoordinatesValue
getLongitude
in interface GlobeCoordinatesValue
public double getPrecision()
GlobeCoordinatesValue
getPrecision
in interface GlobeCoordinatesValue
public String getGlobe()
GlobeCoordinatesValue
GlobeCoordinatesValue.GLOBE_EARTH
.getGlobe
in interface GlobeCoordinatesValue
public ItemIdValue getGlobeItemId()
GlobeCoordinatesValue
ItemIdValue
of the globe that these coordinates refer to.getGlobeItemId
in interface GlobeCoordinatesValue
public <T> T accept(ValueVisitor<T> valueVisitor)
Value
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage