Circle
. This class is scheduled to be
removed in the next major release.@Deprecated public class Circle extends Object implements Shape
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.
Constructor and Description |
---|
Circle(double centerX,
double centerY,
double radius)
Deprecated.
|
Circle(Point center,
double radius)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<Object> |
asList()
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
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.
|
public static final String COMMAND
public Circle(Point center, double radius)
center
- must not be null.radius
- must be greater or equal to zero.public Circle(double centerX, double centerY, double radius)
centerX
- centerY
- radius
- must be greater or equal to zero.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.public String getCommand()
Shape
Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.