Class 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 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