Class Query.GeoRegion.Circle
- java.lang.Object
-
- com.google.appengine.api.datastore.Query.GeoRegion
-
- com.google.appengine.api.datastore.Query.GeoRegion.Circle
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Query.GeoRegion
public static final class Query.GeoRegion.Circle extends Query.GeoRegion
A geographical region representing all points within a fixed distance from a central point, i.e., a circle. Intended for use in a geo-containment predicate filter.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.appengine.api.datastore.Query.GeoRegion
Query.GeoRegion.Circle, Query.GeoRegion.Rectangle
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(GeoPt point)Determines whether the givenGeoPtvalue lies within this geographic region.booleanequals(@Nullable Object o)GeoPtgetCenter()doublegetRadius()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Circle
public Circle(GeoPt center, double radius)
Creates a newCircleobject from the given arguments.- Parameters:
center- aGeoPtrepresenting the center of the circleradius- the radius of the circle, expressed in meters
-
-
Method Detail
-
contains
public boolean contains(GeoPt point)
Description copied from class:Query.GeoRegionDetermines whether the givenGeoPtvalue lies within this geographic region. If the point lies on the border of the region it is considered to be contained.- Specified by:
containsin classQuery.GeoRegion
-
getCenter
public GeoPt getCenter()
-
getRadius
public double getRadius()
-
-