net.ericaro.neoitertools.generators.primitives
Class ShortGenerator

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

public class ShortGenerator
extends java.lang.Object
implements Generator<java.lang.Short>

A simple Generator over a short array

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

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

Constructor Detail

ShortGenerator

public ShortGenerator(short[] array)

ShortGenerator

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

next

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


Copyright © 2011. All Rights Reserved.