|
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.Sphere
public class Sphere
Represents a geospatial sphere value.
| Field Summary | |
|---|---|
static String |
COMMAND
|
| Constructor Summary | |
|---|---|
Sphere(org.springframework.data.geo.Circle circle)
Creates a Sphere from the given Circle. |
|
Sphere(Circle circle)
Deprecated. |
|
Sphere(org.springframework.data.geo.Point center,
org.springframework.data.geo.Distance radius)
Creates a Sphere around the given center Point with the given radius. |
|
Sphere(org.springframework.data.geo.Point center,
double radius)
Creates a Sphere around the given center Point with the given radius. |
|
| Method Summary | |
|---|---|
List<? extends 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. |
org.springframework.data.geo.Distance |
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 |
| Field Detail |
|---|
public static final String COMMAND
| Constructor Detail |
|---|
public Sphere(org.springframework.data.geo.Point center,
org.springframework.data.geo.Distance radius)
Point with the given radius.
center - must not be null.radius - must not be null.
public Sphere(org.springframework.data.geo.Point center,
double radius)
Point with the given radius.
center - radius - public Sphere(org.springframework.data.geo.Circle circle)
Circle.
circle - @Deprecated public Sphere(Circle circle)
Circle.
circle - | Method Detail |
|---|
public Point getCenter()
Circle.
public org.springframework.data.geo.Distance getRadius()
Circle.
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic List<? extends 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
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||