Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.util.intr
Class ArrayIntIterator

java.lang.Object
  extended by cytoscape.util.intr.ArrayIntIterator
All Implemented Interfaces:
IntIterator

public final class ArrayIntIterator
extends Object
implements IntIterator

A utility class which conveniently converts an array of integers into an IntIterator (an iteration of integers).


Constructor Summary
ArrayIntIterator(int[] elements, int beginIndex, int length)
          No copy of the elements array is made.
 
Method Summary
 boolean hasNext()
          DOCUMENT ME!
 int nextInt()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayIntIterator

public ArrayIntIterator(int[] elements,
                        int beginIndex,
                        int length)
No copy of the elements array is made. The contents of the array are never modified by this object.

Method Detail

hasNext

public final boolean hasNext()
DOCUMENT ME!

Specified by:
hasNext in interface IntIterator
Returns:
DOCUMENT ME!

nextInt

public final int nextInt()
DOCUMENT ME!

Specified by:
nextInt in interface IntIterator
Returns:
DOCUMENT ME!

www.cytoscape.org