|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.velocity.util.ArrayIterator
An Iterator wrapper for an Object[]. This will allow us to deal with all array like structures in a consistent manner.
Field Summary | |
private java.lang.Object[] |
array
The objects to iterate. |
private int |
pos
The current position in the array. |
Constructor Summary | |
ArrayIterator(java.lang.Object[] array)
Creates a new iterator instance for the specified array. |
Method Summary | |
boolean |
hasNext()
Check to see if there is another element in the array. |
java.lang.Object |
next()
Move to next element in the array. |
void |
remove()
No op--merely added to satify the Iterator interface. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.Object[] array
private int pos
Constructor Detail |
public ArrayIterator(java.lang.Object[] array)
array
- The array for which an iterator is desired.Method Detail |
public java.lang.Object next()
next
in interface java.util.Iterator
public boolean hasNext()
hasNext
in interface java.util.Iterator
public void remove()
Iterator
interface.remove
in interface java.util.Iterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |