public class Polygon extends Object implements Iterable<Point>, Shape
Polygon.| Constructor and Description |
|---|
Polygon(List<? extends Point> points)
Creates a new
Polygon for the given Points. |
Polygon(Point x,
Point y,
Point z,
Point... others)
Creates a new
Polygon for the given Points. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<Point> |
getPoints()
|
int |
hashCode() |
Iterator<Point> |
iterator() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Polygon(Point x, Point y, Point z, Point... others)
Polygon for the given Points.x - must not be null.y - must not be null.z - must not be null.others - @Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") protected boolean canEqual(Object other)
@Generated(value="lombok") public int hashCode()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.