Package com.google.cloud.datastore
Class LatLng
- java.lang.Object
-
- com.google.cloud.datastore.LatLng
-
- All Implemented Interfaces:
Serializable
public final class LatLng extends Object implements Serializable
A Google Cloud Datastore LatLng (represented by latitude and longitude in degrees). This class is immutable.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
double
getLatitude()
Returns the latitude.double
getLongitude()
Returns the longitude.int
hashCode()
static LatLng
of(double latitude, double longitude)
protected com.google.type.LatLng
toPb()
String
toString()
-
-
-
Method Detail
-
getLatitude
public double getLatitude()
Returns the latitude.
-
getLongitude
public double getLongitude()
Returns the longitude.
-
of
public static LatLng of(double latitude, double longitude)
-
toPb
protected com.google.type.LatLng toPb()
-
-