Class Polygon

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

public class Polygon extends Object implements Iterable<Point>, Shape
Simple value object to represent a Polygon.
Since:
1.8
Author:
Oliver Gierke, Thomas Darimont
See Also:
  • Constructor Details

    • Polygon

      public Polygon(Point x, Point y, Point z, Point... others)
      Creates a new Polygon for the given Points.
      Parameters:
      x - must not be null.
      y - must not be null.
      z - must not be null.
      others -
    • Polygon

      public Polygon(List<? extends Point> points)
      Creates a new Polygon for the given Points.
      Parameters:
      points - must not be null.
  • Method Details