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.GeoRegion
GeoPt
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.GeoRegion
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object