Spring Data Document

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

java.lang.Object
  extended by org.springframework.data.mongodb.core.geo.Box
All Implemented Interfaces:
Shape

public class Box
extends Object
implements Shape

Represents a geospatial box value

Author:
Mark Pollack, Oliver Gierke

Constructor Summary
Box(double[] lowerLeft, double[] upperRight)
           
Box(Point lowerLeft, Point upperRight)
           
 
Method Summary
 List<? extends Object> asList()
          Returns the Shape as a list of usually Double or Lists of Doubles.
 boolean equals(Object obj)
           
 String getCommand()
          Returns the command to be used to create the $within criterion.
 Point getLowerLeft()
           
 Point getUpperRight()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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()

asList

public List<? extends Object> asList()
Description copied from interface: Shape
Returns the Shape as a list of usually Double or Lists of Doubles. Wildcard bound to allow implementations to return a more concrete element type.

Specified by:
asList in interface Shape
Returns:

getCommand

public String getCommand()
Description copied from interface: Shape
Returns the command to be used to create the $within criterion.

Specified by:
getCommand in interface Shape
Returns:

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Spring Data Document

Copyright © 2012. All Rights Reserved.