public class DeleteCommand<T> extends EditCommand<T>
When one object of the first sequence has no corresponding object 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 deletion of this object. The objects embedded in
these type of commands always come from the first sequence.
SequencesComparator
,
EditScript
Constructor and Description |
---|
DeleteCommand(T object)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(CommandVisitor<T> visitor)
Accept a visitor.
|
public DeleteCommand(T object)
DeleteCommand
.object
- the object of the first sequence that should be deletedpublic void accept(CommandVisitor<T> visitor)
DeleteCommand
accepts a visitor, it calls
its visitDeleteCommand
method.accept
in class EditCommand<T>
visitor
- the visitor to be acceptedCopyright © 2010 - 2020 Adobe. All Rights Reserved