|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.collection.ArrayIterator
An array iterator.
Field Summary | |
protected java.lang.Object[] |
array
Array to iterate over. |
protected int |
index
The current position in the array. |
Constructor Summary | |
ArrayIterator(java.lang.Object[] array)
Construct an ArrayIterator. |
Method Summary | |
java.lang.Object |
clone()
Returns a shallow cloned copy of this object. |
boolean |
hasNext()
Returns true if there are more elements in the iteration. |
java.lang.Object |
next()
Returns the next element in the iteration. |
void |
remove()
Unsupported. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final java.lang.Object[] array
protected int index
Constructor Detail |
public ArrayIterator(java.lang.Object[] array)
array
- The array to iterate over.Method Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
java.util.NoSuchElementException
- The are no more elements available.public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
public java.lang.Object clone()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |