Merger

class Merger<Type : Any>(transformationContractList: List<Merger.MergerContract<Type>>) : Transformer<Type>

Merger transforms multiple Type values into single instance being emitted.

Parameters

transformationContractList

is list of separation transformations Contracts

See also

Constructors

Link copied to clipboard
constructor(transformationContractList: List<Merger.MergerContract<Type>>)

Types

Link copied to clipboard

Contract which describes merge transformation

Functions

Link copied to clipboard
open suspend override fun FlowCollector<Type>.transformation(input: Type)

Merger's implementation which merges values into one if it meets shouldBeMerged and getTransformationContract