|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.evanmclean.evlib.lang.ArrayIterable<T>
T - public class ArrayIterable<T>
Create an Iterable from an array that can produce an Iterator
or a ListIterator.
| Constructor Summary | |
|---|---|
ArrayIterable(T[] arr)
|
|
ArrayIterable(T[] arr,
int start_index)
|
|
ArrayIterable(T[] arr,
int start_index,
int end_index)
|
|
| Method Summary | ||
|---|---|---|
static
|
create(T[] arr)
|
|
static
|
create(T[] arr,
int start_index)
|
|
static
|
create(T[] arr,
int start_index,
int end_index)
|
|
ListIterator<T> |
iterator()
Returns an iterator over a set of elements of type T. |
|
ListIterator<T> |
listIterator()
Returns a list iterator over a set of elements of type T. |
|
ListIterator<T> |
listIterator(int initial_index)
Returns a list iterator over a set of elements of type T. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayIterable(T[] arr)
public ArrayIterable(T[] arr,
int start_index)
public ArrayIterable(T[] arr,
int start_index,
int end_index)
| Method Detail |
|---|
public static <T> ArrayIterable<T> create(T[] arr)
public static <T> ArrayIterable<T> create(T[] arr,
int start_index)
public static <T> ArrayIterable<T> create(T[] arr,
int start_index,
int end_index)
public ListIterator<T> iterator()
iterator in interface Iterable<T>public ListIterator<T> listIterator()
public ListIterator<T> listIterator(int initial_index)
initial_index - Index of first element to be returned from the list iterator (by a
call to the next method).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||