Package io.lettuce.core
Class GeoWithin<V>
- java.lang.Object
-
- io.lettuce.core.GeoWithin<V>
-
- Type Parameters:
V
- Value type.
public class GeoWithin<V> extends Object
Geo element within a certain radius. Contains:- the member
- the distance from the reference point (if requested)
- the geohash (if requested)
- the coordinates (if requested)
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
GeoCoordinates
getCoordinates()
Double
getDistance()
Long
getGeohash()
V
getMember()
int
hashCode()
String
toString()
GeoValue<V>
toValue()
-
-
-
Constructor Detail
-
GeoWithin
public GeoWithin(V member, Double distance, Long geohash, GeoCoordinates coordinates)
Creates a newGeoWithin
.- Parameters:
member
- the member.distance
- the distance, may benull
.geohash
- the geohash, may benull
.coordinates
- the coordinates, may benull
.
-
-
Method Detail
-
getMember
public V getMember()
- Returns:
- the member within the Geo set.
-
getDistance
public Double getDistance()
- Returns:
- distance if requested otherwise
null
.
-
getGeohash
public Long getGeohash()
- Returns:
- geohash if requested otherwise
null
.
-
getCoordinates
public GeoCoordinates getCoordinates()
- Returns:
- coordinates if requested otherwise
null
.
-
-