|
Spring Data MongoDB | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Lists of Doubles. |
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()
ShapeShape as a list of usually Double or Lists of Doubles. Wildcard bound
to allow implementations to return a more concrete element type.
asList in interface Shapepublic String getCommand()
Shape
getCommand in interface Shapepublic String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Spring Data MongoDB | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||