OverwritingInputMerger
class OverwritingInputMerger : InputMerger
kotlin.Any | ||
↳ | androidx.work.InputMerger | |
↳ | androidx.work.OverwritingInputMerger |
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 |
|
---|---|
<init>() An |
Public methods |
|
---|---|
Data |
merge(@NonNull inputs: MutableList<Data!>) |
Public constructors
<init>
OverwritingInputMerger()
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.
Public methods
merge
@NonNull fun merge(@NonNull inputs: MutableList<Data!>): Data