Class MergeCommand

All Implemented Interfaces:
Command, ICompareCopyCommand

public class MergeCommand extends AbstractCopyCommand
A merge command that delegates it doExecute() to the IMergeRunnable.merge(List, boolean, IMerger.Registry) method.
Since:
4.0
  • Constructor Details

    • MergeCommand

      public MergeCommand(ChangeRecorder changeRecorder, Collection<Notifier> notifiers, List<? extends Diff> differences, boolean leftToRight, IMerger.Registry mergerRegistry, IMergeRunnable runnable)
      Creates a new instance.
      Parameters:
      changeRecorder - The change recorder associated to this command.
      notifiers - The collection of notifiers that will be notified of this command's execution.
      differences - The list of differences that this command should merge.
      leftToRight - The direction in which differences should be merged.
      mergerRegistry - The registry of mergers.
      runnable - The merge runnable to delegate to.
  • Method Details