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, wait
forEach, spliterator
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.