public final class PointList extends java.util.ArrayList<GoPoint> implements ConstPointList
| Modifier and Type | Class and Description |
|---|---|
class |
PointList.ConstIterator |
| Constructor and Description |
|---|
PointList()
Construct empty point list.
|
PointList(ConstPointList list)
Construct point list as a copy of another point list.
|
PointList(GoPoint p)
Construct point list with a single element.
|
PointList(int initialCapacity)
Construct empty point list with initial capacity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllFromConst(ConstPointList list)
Add points of another list at the end of this list.
|
static ConstPointList |
getEmptyList()
Get an empty constant point list.
|
java.util.Iterator<GoPoint> |
iterator()
Returns an iterator over the points elements in this list.
|
GoPoint |
pop()
Remove and return last element.
|
java.lang.String |
toString() |
static java.lang.String |
toString(ConstPointList list)
Convert point list to string.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic PointList()
public PointList(int initialCapacity)
initialCapacity - The number of points to reserve memory for.public PointList(GoPoint p)
p - The initial point element.public PointList(ConstPointList list)
list - The list to copy the points from.public void addAllFromConst(ConstPointList list)
public static ConstPointList getEmptyList()
public java.util.Iterator<GoPoint> iterator()
public GoPoint pop()
public java.lang.String toString()
toString in interface ConstPointListtoString in class java.util.AbstractCollection<GoPoint>public static java.lang.String toString(ConstPointList list)