# Splitter

class Splitter<Type : Any>(transformationContractList: List<Splitter.SplitterContract<Type>>) : Transformer<Type>

Splitter transforms single Type value into several instances being emitted separately.

#### Parameters

transformationContractList

is list of separation transformations Contracts

#### See also

Splitter.transformation
Splitter.SplitterContract
Transformer

## Constructors

Splitter
Link copied to clipboard
constructor(transformationContractList: List<Splitter.SplitterContract<Type>>)

## Types

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

Contract which describes split transformation

## Functions

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

Splitter's implementation which separates value into multiple if it meets isSplittable