|
Spring Data MongoDB - Core | |||||||||
| 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
Circle. This class is scheduled to be
removed in the next major release.
@Deprecated public class Circle
Represents a geospatial circle value.
Note: We deliberately do not extend org.springframework.data.geo.Circle because introducing it's distance concept would break the clients that use the old Circle API.
| Field Summary | |
|---|---|
static String |
COMMAND
Deprecated. |
| Constructor Summary | |
|---|---|
Circle(double centerX,
double centerY,
double radius)
Deprecated. Creates a new Circle from the given coordinates and radius as Distance with a
Metrics.NEUTRAL. |
|
Circle(org.springframework.data.geo.Point center,
double radius)
Deprecated. Creates a new Circle from the given Point and radius. |
|
| Method Summary | |
|---|---|
List<Object> |
asList()
Deprecated. Returns the Shape as a list of usually Double or Lists of Doubles. |
boolean |
equals(Object obj)
Deprecated. |
org.springframework.data.geo.Point |
getCenter()
Deprecated. Returns the center of the Circle. |
String |
getCommand()
Deprecated. Returns the command to be used to create the $within criterion. |
double |
getRadius()
Deprecated. Returns the radius of the Circle. |
int |
hashCode()
Deprecated. |
String |
toString()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String COMMAND
| Constructor Detail |
|---|
public Circle(org.springframework.data.geo.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 as Distance with a
Metrics.NEUTRAL.
centerX - centerY - radius - must be greater or equal to zero.| Method Detail |
|---|
public org.springframework.data.geo.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.
public String getCommand()
Shape
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||