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 booleanequals(Object obj)doublegetLatitude()Returns the latitude.doublegetLongitude()Returns the longitude.inthashCode()static LatLngof(double latitude, double longitude)protected com.google.type.LatLngtoPb()StringtoString()
-
-
-
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()
-
-