Class Path
java.lang.Object
io.r2dbc.postgresql.codec.Path
Value object that maps to the
path datatype in Postgres.
Uses double to represent the coordinates.
- Since:
- 0.8.5
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathCreate a new closedPolygongivenpoints.static PathCreate a new closedPolygongivenlist of points.booleaninthashCode()booleanisOpen()static PathCreate a newPolygongivenpoints.static PathCreate a newPolygongivenlist of points.static PathCreate a new openPathgivenpoints.static PathCreate a new openPathgivenlist of points.toString()
-
Method Details
-
open
Create a new openPathgivenlist of points.- Parameters:
points- the points- Returns:
- the new
Polygonobject - Throws:
IllegalArgumentException- ifpointsisnull
-
closed
Create a new closedPolygongivenlist of points.- Parameters:
points- the points- Returns:
- the new
Polygonobject - Throws:
IllegalArgumentException- ifpointsisnull
-
of
Create a newPolygongivenlist of points.- Parameters:
open- whether the path is open or closedpoints- the points- Returns:
- the new
Polygonobject - Throws:
IllegalArgumentException- ifpointsisnull- See Also:
-
open
Create a new openPathgivenpoints.- Parameters:
points- the points- Returns:
- the new
Polygonobject - Throws:
IllegalArgumentException- ifpointsisnull
-
closed
Create a new closedPolygongivenpoints.- Parameters:
points- the points- Returns:
- the new
Polygonobject - Throws:
IllegalArgumentException- ifpointsisnull
-
of
Create a newPolygongivenpoints.- Parameters:
open- whether the path is open or closedpoints- the points- Returns:
- the new
Polygonobject - Throws:
IllegalArgumentException- ifpointsisnull
-
isOpen
public boolean isOpen() -
getPoints
-
equals
-
hashCode
-
toString
-