Class ArrayIterator<T>
java.lang.Object
ch.njol.util.coll.iterator.ArrayIterator<T>
- All Implemented Interfaces:
com.google.common.collect.PeekingIterator<T>, Iterator<T>
public class ArrayIterator<T>
extends Object
implements com.google.common.collect.PeekingIterator<T>
A simple iterator to iterate over an array.
-
Constructor Details
-
ArrayIterator
-
ArrayIterator
-
-
Method Details
-
hasNext
-
peek
-
next
-
remove
public void remove()not supported by arrays.- Specified by:
removein interfaceIterator<T>- Specified by:
removein interfacecom.google.common.collect.PeekingIterator<T>- Throws:
UnsupportedOperationException- always
-