Package com.twelvemonkeys.util
Class CollectionUtil.ArrayIterator<E>
- java.lang.Object
-
- com.twelvemonkeys.util.CollectionUtil.ArrayIterator<E>
-
- All Implemented Interfaces:
java.util.Iterator<E>
,java.util.ListIterator<E>
- Enclosing class:
- CollectionUtil
private static class CollectionUtil.ArrayIterator<E> extends java.lang.Object implements java.util.ListIterator<E>
-
-
Constructor Summary
Constructors Constructor Description ArrayIterator(E[] pArray, int pStart, int pLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(E pElement)
boolean
hasNext()
boolean
hasPrevious()
E
next()
int
nextIndex()
E
previous()
int
previousIndex()
void
remove()
void
set(E pElement)
-
-
-
Field Detail
-
next
private int next
-
start
private final int start
-
length
private final int length
-
array
private final E[] array
-
-
Constructor Detail
-
ArrayIterator
public ArrayIterator(E[] pArray, int pStart, int pLength)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public E next()
-
remove
public void remove()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator<E>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator<E>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator<E>
-
-