public class CollectionForIterator<T> extends Object implements ForIterator
Collection and actually
handles the iteration of elements.| Constructor and Description |
|---|
CollectionForIterator(boolean[] a) |
CollectionForIterator(byte[] a) |
CollectionForIterator(char[] a) |
CollectionForIterator(Collection<?> c) |
CollectionForIterator(double[] a) |
CollectionForIterator(float[] a) |
CollectionForIterator(int[] a) |
CollectionForIterator(Iterator<?> iterator,
int size) |
CollectionForIterator(long[] a) |
CollectionForIterator(Object[] a) |
CollectionForIterator(short[] 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(boolean[] a)
public CollectionForIterator(byte[] a)
public CollectionForIterator(char[] a)
public CollectionForIterator(short[] a)
public CollectionForIterator(int[] a)
public CollectionForIterator(long[] a)
public CollectionForIterator(float[] a)
public CollectionForIterator(double[] 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 © 2016 Fizzed, Inc. All rights reserved.