net.ericaro.neoitertools.generators
Class GenericArrayGenerator<T>

java.lang.Object
  extended by net.ericaro.neoitertools.generators.GenericArrayGenerator<T>
All Implemented Interfaces:
Generator<T>

public class GenericArrayGenerator<T>
extends java.lang.Object
implements Generator<T>

A Generator based on any Object Type array.

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

Constructor Summary
GenericArrayGenerator(T... values)
           
 
Method Summary
 T next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericArrayGenerator

public GenericArrayGenerator(T... values)
Method Detail

next

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


Copyright © 2011. All Rights Reserved.