E - the type of elements returned by the iterable's iteratorpublic class ArrayIterable<E>
extends java.lang.Object
implements java.lang.Iterable<E>
ArrayIterable provides an Iterable
for an array of objects of type E.ArrayIterator,
ArrayListIterable| Constructor and Description |
|---|
ArrayIterable(E... array)
Construct an iterable for the specified array.
|
ArrayIterable(E[] array,
int start)
Construct an iterable for the specified array,
starting at the specified start index and continuing for
the rest of the array.
|
ArrayIterable(E[] array,
int start,
int length)
Construct an iterable for the specified array,
starting at the specified start index and continuing for
the specified length.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<E> |
iterator() |
java.lang.String |
toString() |
public ArrayIterable(E... array)
public ArrayIterable(E[] array, int start)
public ArrayIterable(E[] array, int start, int length)