Query.GeoRegion.Rectangle (Google App Engine API for Java)


Class Query.GeoRegion.Rectangle

  • All Implemented Interfaces:
    Enclosing class:

    public static final class Query.GeoRegion.Rectangle
    extends Query.GeoRegion
    A simple geographical region bounded by two latitude lines, and two longitude lines, i.e., a "rectangle". It's not really a rectangle, of course, because longitude lines are not really parallel.

    Intended for use in a geo-containment predicate filter.

    See Also:
    Serialized Form
    • Constructor Detail

      • Rectangle

        public Rectangle(GeoPt southwest,
                         GeoPt northeast)
    • Method Detail

      • getSouthwest

        public GeoPt getSouthwest()
      • getNortheast

        public GeoPt getNortheast()
      • contains

        public boolean contains(GeoPt point)
        Description copied from class: Query.GeoRegion
        Determines whether the given GeoPt value lies within this geographic region. If the point lies on the border of the region it is considered to be contained.
        Specified by:
        contains in class Query.GeoRegion
      • equals

        public boolean equals(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object