|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.mongodb.core.geo.Polygon
public class Polygon
Simple value object to represent a Polygon
.
Constructor Summary | |
---|---|
Polygon(Point x,
Point y,
Point z,
Point... others)
Creates a new Polygon for the given Points. |
Method Summary | |
---|---|
List<List<Double>> |
asList()
Returns the Shape as a list of usually Double or List s of Double s. |
boolean |
equals(Object obj)
|
String |
getCommand()
Returns the command to be used to create the $within criterion. |
int |
hashCode()
|
Iterator<Point> |
iterator()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Polygon(Point x, Point y, Point z, Point... others)
Polygon
for the given Points.
x
- y
- z
- others
- Method Detail |
---|
public List<List<Double>> 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.
asList
in interface Shape
public String getCommand()
Shape
getCommand
in interface Shape
public Iterator<Point> iterator()
iterator
in interface Iterable<Point>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |