MapToStreamTransformer<S, T> constructor

MapToStreamTransformer<S, T>(T value)

Constructs a StreamTransformer which always maps every event from the source Stream to a constant value.

Implementation

MapToStreamTransformer(T value) : _transformer = _buildTransformer(value);