Top Description Constructors Methods
org.apache.commons.collections4.sequence

public Class DeleteCommand<T>

extends EditCommand<T>
Class Inheritance

Command representing the deletion of one object of the first sequence.

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.

Since
4.0
See Also
SequencesComparator, EditScript

Constructor Summary

AccessConstructor and Description
public
DeleteCommand(final T
the object of the first sequence that should be deleted
object
)

Simple constructor.

Method Summary

Modifier and TypeMethod and Description
public void
accept(final CommandVisitor<T>
the visitor to be accepted
visitor
)

Implements abstract org.apache.commons.collections4.sequence.EditCommand.accept.

Accept a visitor.
Inherited from org.apache.commons.collections4.sequence.EditCommand:
getObject

Constructor Detail

DeleteCommandback to summary
public DeleteCommand(final T object)

Simple constructor. Creates a new instance of DeleteCommand.

Parameters
object:T

the object of the first sequence that should be deleted

Method Detail

acceptback to summary
public void accept(final CommandVisitor<T> visitor)

Implements abstract org.apache.commons.collections4.sequence.EditCommand.accept.

Accept a visitor. When a DeleteCommand accepts a visitor, it calls its visitDeleteCommand method.

Parameters
visitor:CommandVisitor<T>

the visitor to be accepted

Annotations
@Override