Spring Data MongoDB - Core

org.springframework.data.mongodb.core.geo
Class Circle

java.lang.Object
  extended by org.springframework.data.mongodb.core.geo.Circle
All Implemented Interfaces:
Serializable, Shape

Deprecated. As of release 1.5, replaced by Circle. This class is scheduled to be removed in the next major release.

@Deprecated
public class Circle
extends Object
implements Shape

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.

Author:
Mark Pollack, Oliver Gierke, Thomas Darimont
See Also:
Serialized Form

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(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.  
 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

COMMAND

public static final String COMMAND
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

Circle

public Circle(Point center,
              double radius)
Deprecated. 
Creates a new Circle from the given Point and radius.

Parameters:
center - must not be null.
radius - must be greater or equal to zero.

Circle

public Circle(double centerX,
              double centerY,
              double radius)
Deprecated. 
Creates a new Circle from the given coordinates and radius as Distance with a Metrics.NEUTRAL.

Parameters:
centerX -
centerY -
radius - must be greater or equal to zero.
Method Detail

getCenter

public Point getCenter()
Deprecated. 
Returns the center of the Circle.

Returns:
will never be null.

getRadius

public double getRadius()
Deprecated. 
Returns the radius of the Circle.

Returns:

asList

public List<Object> asList()
Deprecated. 
Description copied from interface: Shape
Returns the Shape as a list of usually Double or Lists of Doubles. Wildcard bound to allow implementations to return a more concrete element type.

Returns:

getCommand

public String getCommand()
Deprecated. 
Description copied from interface: Shape
Returns the command to be used to create the $within criterion.

Returns:

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Deprecated. 
Overrides:
equals in class Object

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

Spring Data MongoDB - Core

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.