Interface Processor<T,​R>

    • Method Detail

      • process

        default Input<R> process​(Supplier<T> i)
        Creates a new Input that applies this Processor to the output of the supplied Supplier.
        Parameters:
        i - The Supplier (or Input) to process in the returned Input.
        Returns:
        An Input as described above.
      • followedBy

        default Output<T> followedBy​(Consumer<R> o)
        Creates a new Output that applies this Processor to the input before passing it to the provided Consumer.
        Parameters:
        o - The Consumer (or Output) to pass the processed results to.
        Returns:
        A new Output as described above.