net.ericaro.neoitertools.generators.primitives
Class CharacterGenerator

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

public class CharacterGenerator
extends java.lang.Object
implements Generator<java.lang.Character>

A simple Generator over a char array

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

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

Constructor Detail

CharacterGenerator

public CharacterGenerator(char[] array)

CharacterGenerator

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

next

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


Copyright © 2011. All Rights Reserved.