Module id.xfunction

Class TransformSubscriber<T,R>

Object
TransformSubscriber<T,R>
Type Parameters:
T - input type (type of a Publisher)
R - output type (type of an existing Subscriber)
All Implemented Interfaces:
Flow.Subscriber<T>

public class TransformSubscriber<T,R> extends Object implements Flow.Subscriber<T>
Transformer Flow.Subscriber allows to subscribe existing Flow.Subscriber of type R to a Flow.Publisher of type T.

The transformation of items from T to R is done with a given transformer Function