diva.util
Class ArrayIterator
java.lang.Object
diva.util.IteratorAdapter
diva.util.ArrayIterator
- All Implemented Interfaces:
- Iterator
public class ArrayIterator
- extends IteratorAdapter
An iterator over a given array. Treats "null" as an
empty array.
- Version:
- $Revision: 1.4 $
- Author:
- Michael Shilman (michaels@eecs.berkeley.edu)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayIterator
public ArrayIterator(Object[] array)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
- Overrides:
hasNext
in class IteratorAdapter
next
public Object next()
- Specified by:
next
in interface Iterator
- Overrides:
next
in class IteratorAdapter
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.