Package io.lettuce.core
Class GeoCoordinates
- java.lang.Object
-
- io.lettuce.core.GeoCoordinates
-
public class GeoCoordinates extends Object
A tuple consisting of numerical geo data points to describe geo coordinates (longitude/latitude coordinates according to WGS84).- Author:
- Mark Paluch
-
-
Constructor Summary
Constructors Constructor Description GeoCoordinates(Number x, Number y)
Creates newGeoCoordinates
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GeoCoordinates
create(Number x, Number y)
Creates newGeoCoordinates
.boolean
equals(Object o)
Number
getX()
Number
getY()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
GeoCoordinates
public GeoCoordinates(Number x, Number y)
Creates newGeoCoordinates
.- Parameters:
x
- the longitude, must not benull
.y
- the latitude, must not benull
.
-
-
Method Detail
-
create
public static GeoCoordinates create(Number x, Number y)
Creates newGeoCoordinates
.- Parameters:
x
- the longitude, must not benull
.y
- the latitude, must not benull
.- Returns:
GeoCoordinates
.
-
getX
public Number getX()
- Returns:
- the longitude.
-
getY
public Number getY()
- Returns:
- the latitude.
-
-