net.ericaro.neoitertools.generators.primitives
Class IntegerGenerator

java.lang.Object
  extended by net.ericaro.neoitertools.generators.primitives.IntegerGenerator
All Implemented Interfaces:
Generator<java.lang.Integer>

public class IntegerGenerator
extends java.lang.Object
implements Generator<java.lang.Integer>

A simple Generator over a int array

Author:
eric
See Also:
IntegerGenerator's wiki page, neoitertools site

Constructor Summary
IntegerGenerator(int[] array)
           
IntegerGenerator(int[] array, int from, int to)
           
 
Method Summary
 java.lang.Integer next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerGenerator

public IntegerGenerator(int[] array)

IntegerGenerator

public IntegerGenerator(int[] array,
                        int from,
                        int to)
Method Detail

next

public java.lang.Integer next()
                       throws java.util.NoSuchElementException
Specified by:
next in interface Generator<java.lang.Integer>
Returns:
the next item in the sequence.
Throws:
java.util.NoSuchElementException - when sequence is exhausted.


Copyright © 2011. All Rights Reserved.