public final class OperationsMerger extends Object implements IDiffOptimizationOperation
Represents a class to merge 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 |
---|
OperationsMerger(EditOperationsOrder operationsOrder)
Creates an instance of
OperationsMerger class. |
Modifier and Type | Method and Description |
---|---|
void |
execute(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffs)
Executes merges.
|
public OperationsMerger(EditOperationsOrder operationsOrder)
Creates an instance of OperationsMerger
class.
operationsOrder
- The operations order.public final void execute(com.aspose.ms.System.Collections.Generic.List<DiffOperation> diffs)
Executes merges.
execute
in interface IDiffOptimizationOperation
diffs
- List of edits.Copyright © 2025 Aspose. All Rights Reserved.