OverwritingInputMerger


class OverwritingInputMerger : InputMerger


An InputMerger that attempts to add all keys from all inputs to the output. In case of a conflict, this class will overwrite the previously-set key. Because there is no defined order for inputs, this implementation is best suited for cases where conflicts will not happen, or where overwriting is a valid strategy to deal with them.

Summary

Public constructors

Public functions

open Data
merge(inputs: List<Data>)

Merges a list of Data and outputs a single Data object.

Public constructors

OverwritingInputMerger

Added in 1.0.0
OverwritingInputMerger()

Public functions

merge

Added in 2.10.0
open fun merge(inputs: List<Data>): Data

Merges a list of Data and outputs a single Data object.

Parameters
inputs: List<Data>

A list of Data

Returns
Data

The merged output