Interface PipeFactory<P,​T>

  • Type Parameters:
    P - The type of the parameter used for pipe creation
    T - The type of the items the produced pipes work with

    public interface PipeFactory<P,​T>
    An interface for pipe creation based on some parameter. The standard Function interface isn't good enough, because we want to allow IOExceptions.
    Author:
    Eyal Schneider
    • Method Detail

      • get

        Pipe<T> get​(P param)
             throws IOException
        Parameters:
        param - A parameter for the pipe creation
        Returns:
        The created pipe
        Throws:
        IOException - In case of creation error due to IO problem