Package ch.njol.util.coll.iterator
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
public boolean hasNext() -
peek
- Specified by:
peek
in interfacecom.google.common.collect.PeekingIterator<T>
-
next
-
remove
public void remove()not supported by arrays.- Specified by:
remove
in interfaceIterator<T>
- Specified by:
remove
in interfacecom.google.common.collect.PeekingIterator<T>
- Throws:
UnsupportedOperationException
- always
-