Package com.android.builder.merge
Class IncrementalFileMerger
java.lang.Object
com.android.builder.merge.IncrementalFileMerger
Class performing an incremental merge operation. This class is a utility with only one method,
merge(List, IncrementalFileMergerOutput, IncrementalFileMergerState, Predicate). See
package description for a discussion on merging concepts.-
Method Summary
Modifier and TypeMethodDescriptionstatic IncrementalFileMergerStatemerge(List<IncrementalFileMergerInput> inputs, IncrementalFileMergerOutput output, IncrementalFileMergerState state, Predicate<String> noCompressPredicate) Performs an incremental merge operation.
-
Method Details
-
merge
@NonNull public static IncrementalFileMergerState merge(@NonNull List<IncrementalFileMergerInput> inputs, @NonNull IncrementalFileMergerOutput output, @NonNull IncrementalFileMergerState state, @NonNull Predicate<String> noCompressPredicate) Performs an incremental merge operation. An incremental merge operation is done by applying a set of changes represented by a list of instances ofIncrementalFileMergerInputto a current state represented by an instance ofIncrementalFileMergerState. All changes that need to be made to the output as a consequence of the inputs are reported tooutput.See package description for details.
- Parameters:
inputs- all inputs representing changes to the inputsoutput- object receiving information about all changes that need to be made to the outputstate- state of the previous merge; an empty state if this is the first mergenoCompressPredicate- a predicate indicating whether paths should be uncompressed
-