|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpaul.DataStructs.ArrayIterator<T>
public class ArrayIterator<T>
ArrayIterator
is a read-only iterator over an array of
elements.
ListIterator
Constructor Summary | |
---|---|
ArrayIterator(T... a)
Creates a ArrayIterator . |
Method Summary | |
---|---|
void |
add(T o)
|
boolean |
hasNext()
|
boolean |
hasPrevious()
|
T |
next()
|
int |
nextIndex()
|
T |
previous()
|
int |
previousIndex()
|
void |
remove()
|
void |
set(T o)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayIterator(T... a)
ArrayIterator
.
Method Detail |
---|
public void add(T o)
add
in interface java.util.ListIterator<T>
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
hasNext
in interface java.util.ListIterator<T>
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator<T>
public T next()
next
in interface java.util.Iterator<T>
next
in interface java.util.ListIterator<T>
public int nextIndex()
nextIndex
in interface java.util.ListIterator<T>
public T previous()
previous
in interface java.util.ListIterator<T>
public int previousIndex()
previousIndex
in interface java.util.ListIterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
remove
in interface java.util.ListIterator<T>
public void set(T o)
set
in interface java.util.ListIterator<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |