# 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

Merger.transformation
Merger.MergerContract
Transformer

## Constructors

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

## Types

MergerContract
Link copied to clipboard
interface MergerContract<Type> : Transformer.TransformationContract

Contract which describes merge transformation

## Functions

transformation
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