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

cytoscape.util.intr
Class ArrayIntEnumerator

java.lang.Object
  extended by cytoscape.util.intr.ArrayIntEnumerator
All Implemented Interfaces:
IntEnumerator

public final class ArrayIntEnumerator
extends Object
implements IntEnumerator

A utility class which conveniently converts an array of integers into an IntEnumerator (an enumeration of integers).


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

Constructor Detail

ArrayIntEnumerator

public ArrayIntEnumerator(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

numRemaining

public final int numRemaining()
DOCUMENT ME!

Specified by:
numRemaining in interface IntEnumerator
Returns:
DOCUMENT ME!

nextInt

public final int nextInt()
DOCUMENT ME!

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

www.cytoscape.org