All Packages Class Hierarchy This Package Previous Next Index
Class org.webmacro.util.ArrayIterator
java.lang.Object
|
+----org.webmacro.util.ArrayIterator
- public final class ArrayIterator
- extends Object
- implements Iterator
This provides an iterator interface to an array
-
ArrayIterator(Object[])
- Construct an iterator given an enumeration
-
hasNext()
- Return true if we have not yet reached the end of the enumeration
-
main(String[])
- Test harness
-
next()
- Advance the iterator and return the next value.
-
remove()
- Unsupported
ArrayIterator
public ArrayIterator(Object array[])
- Construct an iterator given an enumeration
hasNext
public final boolean hasNext()
- Return true if we have not yet reached the end of the enumeration
next
public final Object next() throws NoSuchElementException
- Advance the iterator and return the next value. Return null if we
reach the end of the enumeration.
remove
public final void remove() throws UnsupportedOperationException
- Unsupported
main
public static void main(String arg[])
- Test harness
All Packages Class Hierarchy This Package Previous Next Index