org.jjoost.collections.iters
Class ArrayIterator<E>
java.lang.Object
org.jjoost.collections.iters.ArrayIterator<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- java.util.Iterator<E>
public final class ArrayIterator<E>
- extends java.lang.Object
- implements java.util.Iterator<E>
This class creates an Iterator from the supplied array
- Author:
- b.elliottsmith
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayIterator
public ArrayIterator(E... vals)
ArrayIterator
public ArrayIterator(E[] vals,
int lb,
int ub)
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface java.util.Iterator<E>
next
public E next()
- Specified by:
next in interface java.util.Iterator<E>
remove
public void remove()
- Specified by:
remove in interface java.util.Iterator<E>
get
public static <E> ArrayIterator<E> get(E... vals)