|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.util.collection.ArrayIterator
An array iterator.
Field Summary | |
protected Object[] |
array
Array to iterate over. |
protected int |
index
The current position in the array. |
Constructor Summary | |
ArrayIterator(Object[] array)
Construct an ArrayIterator. |
Method Summary | |
Object |
clone()
Returns a shallow cloned copy of this object. |
boolean |
hasNext()
Returns true if there are more elements in the iteration. |
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 Object[] array
protected int index
Constructor Detail |
public ArrayIterator(Object[] array)
array
- The array to iterate over.Method Detail |
public boolean hasNext()
public Object next()
NoSuchElementException
- The are no more elements available.public void remove()
UnsupportedOperationException
public Object clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |