net.ericaro.neoitertools.generators.primitives
Class LongGenerator

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

public class LongGenerator
extends java.lang.Object
implements Generator<java.lang.Long>

A simple Generator over a long array

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

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

Constructor Detail

LongGenerator

public LongGenerator(long[] array)

LongGenerator

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

next

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


Copyright © 2011. All Rights Reserved.