public class KeepCommand<T> extends EditCommand<T>
When one object of the first sequence equals
another objects in
the second sequence at the right place, the edit script
transforming the first sequence into the second sequence uses an instance of
this class to represent the keeping of this object. The objects embedded in
these type of commands always come from the first sequence.
SequencesComparator
,
EditScript
Constructor and Description |
---|
KeepCommand(T object)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(CommandVisitor<T> visitor)
Accept a visitor.
|
public KeepCommand(T object)
object
- the object belonging to both sequences (the object is a
reference to the instance in the first sequence which is known
to be equal to an instance in the second sequence)public void accept(CommandVisitor<T> visitor)
KeepCommand
accepts a visitor, it
calls its visitKeepCommand
method.accept
in class EditCommand<T>
visitor
- the visitor to be accepted"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"