org.gcube.data.streams.generators
Class NoOpGenerator<E>

java.lang.Object
  extended by org.gcube.data.streams.generators.NoOpGenerator<E>
Type Parameters:
E - the type of stream elements
All Implemented Interfaces:
Generator<E,E>

public class NoOpGenerator<E>
extends Object
implements Generator<E,E>

A pass-through Generator.

Author:
Fabio Simeoni

Field Summary
 
Fields inherited from interface org.gcube.data.streams.generators.Generator
iteration
 
Constructor Summary
NoOpGenerator()
           
 
Method Summary
 E yield(E element)
          Yields an element of a Stream from an element of another Stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpGenerator

public NoOpGenerator()
Method Detail

yield

public E yield(E element)
Description copied from interface: Generator
Yields an element of a Stream from an element of another Stream.

Specified by:
yield in interface Generator<E,E>
Parameters:
element - the input element
Returns:
the output element


Copyright © 2012. All Rights Reserved.