org.springframework.data.document.mongodb.geo
Class Box

java.lang.Object
  extended by org.springframework.data.document.mongodb.geo.Box

public class Box
extends java.lang.Object

Represents a geospatial box value

Author:
Mark Pollack, Oliver Gierke

Field Summary
private  Point first
           
private  Point second
           
 
Constructor Summary
Box(double[] lowerLeft, double[] upperRight)
           
Box(Point lowerLeft, Point upperRight)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Point getLowerLeft()
           
 Point getUpperRight()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

first

private final Point first

second

private final Point second
Constructor Detail

Box

public Box(Point lowerLeft,
           Point upperRight)

Box

public Box(double[] lowerLeft,
           double[] upperRight)
Method Detail

getLowerLeft

public Point getLowerLeft()

getUpperRight

public Point getUpperRight()

toString

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object