public final class Polygon extends Object
polygon datatype in Postgres.
Uses double to represent the coordinates.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<Point> |
getPoints() |
int |
hashCode() |
static Polygon |
of(List<Point> points)
Create a new
Polygon given list of points. |
static Polygon |
of(Point... points)
Create a new
Polygon given points. |
String |
toString() |
public static Polygon of(List<Point> points)
Polygon given list of points.points - the pointsPolygon objectIllegalArgumentException - if points is nullpublic static Polygon of(Point... points)
Polygon given points.points - the pointsPolygon objectIllegalArgumentException - if points is nullCopyright © 2023. All rights reserved.