org.springframework.data.mongodb.core.geo
Class Box
java.lang.Object
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)
|
Box
public Box(Point lowerLeft,
Point upperRight)
Box
public Box(double[] lowerLeft,
double[] upperRight)
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 List
s of Double
s. 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
Copyright © 2012. All Rights Reserved.