Interface StreamPipe<T,U>

Type Parameters:
T - the type of the value in the stream to transform
U - the type of the value in the resulting stream
All Superinterfaces:
Function<Stream<T>,Stream<U>>, Pipe<Stream<T>,Stream<U>>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface StreamPipe<T,U> extends Pipe<Stream<T>,Stream<U>>

A stream pipe is used within a template to transform a stream before applying templates to the elements of the stream.

Since:
1.2
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    default <V> StreamPipe<T,V>
    and(StreamPipe<U,V> after)
    Chains the specified stream pipe after this pipe.

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose

    Methods inherited from interface io.inverno.mod.irt.Pipe

    and
  • Method Details

    • and

      default <V> StreamPipe<T,V> and(StreamPipe<U,V> after)

      Chains the specified stream pipe after this pipe.

      Type Parameters:
      V - the type of the value in the resulting stream
      Parameters:
      after - the stream pipe to chain after this pipe
      Returns:
      A stream pipe which first invokes this pipe and then the after pipe