public class CollectionForIterator<T> extends Object implements ForIterator
Collection and actually
handles the iteration of elements.| Constructor and Description |
|---|
CollectionForIterator(Collection<?> c) |
CollectionForIterator(int[] a) |
CollectionForIterator(Iterator<?> iterator,
int size) |
CollectionForIterator(Object[] a) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
first() |
boolean |
hasNext() |
int |
index() |
boolean |
last() |
T |
next() |
public CollectionForIterator(Collection<?> c)
public CollectionForIterator(Object[] a)
public CollectionForIterator(int[] a)
public CollectionForIterator(Iterator<?> iterator, int size)
public T next()
public boolean hasNext()
public int index()
index in interface ForIteratorpublic boolean first()
first in interface ForIteratorpublic boolean last()
last in interface ForIteratorCopyright © 2015–2016 Fizzed, Inc. All rights reserved.