mergeBy

fun <F, F2 : F, T, T2 : T> SplittingConverter<F, F2, T2, T>.mergeBy(converter: Converter<F2, T2>): Converter<F, T>

Merges this SplittingConverter by delegating to a Converter instance that converts between types F2 and T2. After the merge, a new Converter will be returned which fully converts between types F and T.

Parameters

F

The overall type being converted from

F2

The intermediate type being converted from on the complex branch, which is also the source type of converter

T2

The intermediate type being converted to on the complex branch, which is also the target type of converter

T

The overall type being converted to

converter

A Converter between types F2 and T2