|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.IteratorAdapter
diva.util.ArrayIterator
public class ArrayIterator
An iterator over a given array. Treats "null" as an empty array.
Field Summary | |
---|---|
private java.lang.Object[] |
_array
|
private int |
_i
|
Constructor Summary | |
---|---|
ArrayIterator(java.lang.Object[] array)
|
Method Summary | |
---|---|
boolean |
hasNext()
|
java.lang.Object |
next()
|
Methods inherited from class diva.util.IteratorAdapter |
---|
remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.Object[] _array
private int _i
Constructor Detail |
---|
public ArrayIterator(java.lang.Object[] array)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in class IteratorAdapter
public java.lang.Object next()
next
in interface java.util.Iterator
next
in class IteratorAdapter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |