An edit script is the most general view of the differences between two sequences. It is built as the result of the comparison between two sequences by the {@link SequencesComparator SequencesComparator} class. The user canwalk through it using the visitor design pattern.
It is guaranteed that the objects embedded in the {@link InsertCommand insertcommands} come from the second sequence and that the objects embedded ineither the {@link DeleteCommand delete commands} or {@link KeepCommand keepcommands} come from the first sequence. This can be important if subclassingis used for some elements in the first sequence and the equals
method is specialized.
@see SequencesComparator
@see EditCommand
@see CommandVisitor
@see ReplacementsHandler
@since 4.0
@version $Id: EditScript.java 1477760 2013-04-30 18:34:03Z tn $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|