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.
StringsComparator, EditScript
| Access | Constructor and Description |
|---|---|
| public | KeepCommand(final T
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) object)Constructs a new instance of KeepCommand. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(final CommandVisitor<T>
the visitor to be accepted. visitor)Implements abstract org. Accepts a visitor. |
| KeepCommand | back to summary |
|---|---|
| public KeepCommand(final T object) Constructs a new instance of KeepCommand.
| |
| accept | back to summary |
|---|---|
| public void accept(final CommandVisitor<T> visitor) Implements abstract org. Accepts a visitor. When a
| |