Package org.pipecraft.pipes.sync.source
Class CollectionReaderPipe<T>
- java.lang.Object
-
- org.pipecraft.pipes.sync.source.IteratorReaderPipe<T>
-
- org.pipecraft.pipes.sync.source.CollectionReaderPipe<T>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,BasePipe,Pipe<T>
public class CollectionReaderPipe<T> extends IteratorReaderPipe<T>
A pipe based on a given collection of items. Produces items according to their iteration order in the given collection.- Author:
- Eyal Schneider
-
-
Constructor Summary
Constructors Constructor Description CollectionReaderPipe(Collection<T> items)ConstructorCollectionReaderPipe(T... items)Constructor
-
-
-
Constructor Detail
-
CollectionReaderPipe
public CollectionReaderPipe(Collection<T> items)
Constructor- Parameters:
items- The items to be produced by this pipe
-
CollectionReaderPipe
@SafeVarargs public CollectionReaderPipe(T... items)
Constructor- Parameters:
items- The items to be produced by this pipe, in the required order
-
-