|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.mongodb.core.geo.Circle
public class Circle
Represents a geospatial circle value
Constructor Summary | |
---|---|
Circle(double centerX,
double centerY,
double radius)
Creates a new Circle from the given coordinates and radius. |
|
Circle(Point center,
double radius)
Creates a new Circle from the given Point and radius. |
Method Summary | |
---|---|
List<Object> |
asList()
Returns the Shape as a list of usually Double or List s of Double s. |
boolean |
equals(Object obj)
|
Point |
getCenter()
Returns the center of the Circle . |
String |
getCommand()
Returns the command to be used to create the $within criterion. |
double |
getRadius()
Returns the radius of the Circle . |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Circle(Point center, double radius)
Circle
from the given Point
and radius.
center
- must not be null.radius
- must be greater or equal to zero.public Circle(double centerX, double centerY, double radius)
Circle
from the given coordinates and radius.
centerX
- centerY
- radius
- must be greater or equal to zero.Method Detail |
---|
public Point getCenter()
Circle
.
public double getRadius()
Circle
.
public List<Object> asList()
Shape
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.
asList
in interface Shape
public String getCommand()
Shape
getCommand
in interface Shape
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |