public final class MergingOptimizer extends Object implements IDiffOptimizationOperation
Represents class to reorder and merge edit sections. It merge equalities and combines adjacent identical changes. It sorts and merge changes between Equals operations, because changing their order and merge does not change the result, but produces more readable output. This combines adjacent Equal operations.
Constructor and Description |
---|
MergingOptimizer(EditOperationsOrder operationsOrder)
Creates an instance of
MergingOptimizer class. |
Modifier and Type | Method and Description |
---|---|
void |
execute(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffs)
Performs optimization of difference operations.
|
public MergingOptimizer(EditOperationsOrder operationsOrder)
Creates an instance of MergingOptimizer
class.
operationsOrder
- The operations order.public final void execute(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffs)
Performs optimization of difference operations.
execute
in interface IDiffOptimizationOperation
diffs
- List of edits.Copyright © 2025 Aspose. All Rights Reserved.