public final class Path extends Object
path datatype in Postgres.
Uses double to represent the coordinates.
| Modifier and Type | Method and Description |
|---|---|
static Path |
closed(List<Point> points)
Create a new closed
Polygon given list of points. |
static Path |
closed(Point... points)
Create a new closed
Polygon given points. |
boolean |
equals(Object o) |
List<Point> |
getPoints() |
int |
hashCode() |
boolean |
isOpen() |
static Path |
of(boolean open,
List<Point> points)
Create a new
Polygon given list of points. |
static Path |
of(boolean open,
Point... points)
Create a new
Polygon given points. |
static Path |
open(List<Point> points)
Create a new open
Path given list of points. |
static Path |
open(Point... points)
Create a new open
Path given points. |
String |
toString() |
public static Path open(List<Point> points)
Path given list of points.points - the pointsPolygon objectIllegalArgumentException - if points is nullpublic static Path closed(List<Point> points)
Polygon given list of points.points - the pointsPolygon objectIllegalArgumentException - if points is nullpublic static Path of(boolean open, List<Point> points)
Polygon given list of points.open - whether the path is open or closedpoints - the pointsPolygon objectIllegalArgumentException - if points is nullopen(List),
closed(List)public static Path open(Point... points)
Path given points.points - the pointsPolygon objectIllegalArgumentException - if points is nullpublic static Path closed(Point... points)
Polygon given points.points - the pointsPolygon objectIllegalArgumentException - if points is nullpublic static Path of(boolean open, Point... points)
Polygon given points.open - whether the path is open or closedpoints - the pointsPolygon objectIllegalArgumentException - if points is nullpublic boolean isOpen()
Copyright © 2024. All rights reserved.