Spring Data MongoDB - Core

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

java.lang.Object
  extended by org.springframework.data.geo.Polygon
      extended by org.springframework.data.mongodb.core.geo.Polygon
All Implemented Interfaces:
Serializable, Iterable<org.springframework.data.geo.Point>, org.springframework.data.geo.Shape

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

@Deprecated
public class Polygon
extends org.springframework.data.geo.Polygon
implements Shape

Simple value object to represent a Polygon.

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

Field Summary
static String COMMAND
          Deprecated.  
 
Constructor Summary
Polygon(List<P> points)
          Deprecated. Creates a new Polygon for the given Points.
Polygon(P x, P y, P z, P... others)
          Deprecated. Creates a new Polygon for the given Points.
 
Method Summary
 List<? extends Object> asList()
          Deprecated. Returns the Shape as a list of usually Double or Lists of Doubles.
static List<? extends Object> asList(org.springframework.data.geo.Polygon polygon)
          Deprecated. Returns a List of x,y-coordinate tuples of Points from the given Polygon.
 String getCommand()
          Deprecated. Returns the command to be used to create the $within criterion.
 
Methods inherited from class org.springframework.data.geo.Polygon
equals, getPoints, hashCode, iterator, toString
 
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

Polygon

public Polygon(P x,
               P y,
               P z,
               P... others)
Deprecated. 
Creates a new Polygon for the given Points.

Parameters:
x -
y -
z -
others -

Polygon

public Polygon(List<P> points)
Deprecated. 
Creates a new Polygon for the given Points.

Parameters:
points -
Method Detail

getCommand

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

Returns:

asList

public List<? extends 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:

asList

public static List<? extends Object> asList(org.springframework.data.geo.Polygon polygon)
Deprecated. 
Returns a List of x,y-coordinate tuples of Points from the given Polygon.

Parameters:
polygon -
Returns:

Spring Data MongoDB - Core

Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.