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
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)GeoCoordinatesgetCoordinates()DoublegetDistance()LonggetGeohash()VgetMember()inthashCode()StringtoString()GeoValue<V>toValue()
-
Constructor Details
-
GeoWithin
Creates a newGeoWithin.- Parameters:
member- the member.distance- the distance, may benull.geohash- the geohash, may benull.coordinates- the coordinates, may benull.
-
-
Method Details
-
getMember
- Returns:
- the member within the Geo set.
-
getDistance
- Returns:
- distance if requested otherwise
null.
-
getGeohash
- Returns:
- geohash if requested otherwise
null.
-
getCoordinates
- Returns:
- coordinates if requested otherwise
null.
-
toValue
- Returns:
- a
GeoValueifcoordinatesare set. - Since:
- 6.1
-
equals
-
hashCode
public int hashCode() -
toString
-