ch.bind.philib.util
Class ArrayIterator<E>

java.lang.Object
  extended by ch.bind.philib.util.ArrayIterator<E>
All Implemented Interfaces:
Iterator<E>

public final class ArrayIterator<E>
extends Object
implements Iterator<E>

An Iterator over an array.

Author:
Philipp Meinen

Constructor Summary
ArrayIterator(E[] data)
           
 
Method Summary
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayIterator

public ArrayIterator(E[] data)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<E>

next

public E next()
Specified by:
next in interface Iterator<E>

remove

public void remove()
Specified by:
remove in interface Iterator<E>


Copyright © 2013. All Rights Reserved.