Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Tests whether this collection is equal to the given object.
|
Shape |
get(int index)
Returns the shape of this collection with the given index.
|
static ShapeCollection |
getRandom()
Returns a random collection of shapes.
|
Iterator<Shape> |
iterator()
Returns an iterator of this collection.
|
int |
size()
Returns the size of this collection of shapes.
|
String |
toString()
Returns a string representation of this collection.
|
public static ShapeCollection getRandom()
public int size()
public Shape get(int index)
index
- index of the shape.public boolean equals(Object object)