net.ericaro.neoitertools.generators.primitives
Class ByteGenerator

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

public class ByteGenerator
extends java.lang.Object
implements Generator<java.lang.Byte>

A simple Generator over a byte array

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

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

Constructor Detail

ByteGenerator

public ByteGenerator(byte[] array)

ByteGenerator

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

next

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


Copyright © 2011. All Rights Reserved.