org.jjoost.collections.iters
Class ArrayIterator<E>

java.lang.Object
  extended by 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

Constructor Summary
ArrayIterator(E... vals)
           
ArrayIterator(E[] vals, int lb, int ub)
           
 
Method Summary
static
<E> ArrayIterator<E>
get(E... vals)
           
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayIterator

public ArrayIterator(E... vals)

ArrayIterator

public ArrayIterator(E[] vals,
                     int lb,
                     int ub)
Method Detail

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)