Package ai.extend.types
Class Polygon.Builder
- java.lang.Object
-
- ai.extend.types.Polygon.Builder
-
- All Implemented Interfaces:
Polygon._FinalStage,Polygon.XStage,Polygon.YStage
- Enclosing class:
- Polygon
public static final class Polygon.Builder extends java.lang.Object implements Polygon.XStage, Polygon.YStage, Polygon._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Polygonbuild()Polygon.Builderfrom(Polygon other)Polygon.YStagex(double x)X coordinate of the pointPolygon._FinalStagey(double y)Y coordinate of the point
-
-
-
Method Detail
-
from
public Polygon.Builder from(Polygon other)
- Specified by:
fromin interfacePolygon.XStage
-
x
public Polygon.YStage x(double x)
X coordinate of the point
X coordinate of the point
- Specified by:
xin interfacePolygon.XStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
y
public Polygon._FinalStage y(double y)
Y coordinate of the point
Y coordinate of the point
- Specified by:
yin interfacePolygon.YStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public Polygon build()
- Specified by:
buildin interfacePolygon._FinalStage
-
-