public static final class Query.GeoRegion.Rectangle extends Query.GeoRegion
Intended for use in a geo-containment predicate filter.
Query.GeoRegion.Circle, Query.GeoRegion.Rectangle| Constructor and Description |
|---|
Rectangle(GeoPt southwest,
GeoPt northeast) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(GeoPt point)
Determines whether the given
GeoPt value lies within this geographic region. |
boolean |
equals(java.lang.Object o) |
GeoPt |
getNortheast() |
GeoPt |
getSouthwest() |
int |
hashCode() |
java.lang.String |
toString() |
public GeoPt getSouthwest()
public GeoPt getNortheast()
public boolean contains(GeoPt point)
Query.GeoRegionGeoPt value lies within this geographic region. If the
point lies on the border of the region it is considered to be contained.contains in class Query.GeoRegionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object