Class KeepCommand<T>
java.lang.Object
org.apache.commons.collections4.sequence.EditCommand<T>
org.apache.commons.collections4.sequence.KeepCommand<T>
- Type Parameters:
T
- the type of object to apply this command.
Command representing the keeping of one object present in both sequences.
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.
- Since:
- 4.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.collections4.sequence.EditCommand
getObject
-
Constructor Details
-
Method Details
-
accept
Accept a visitor. When aKeepCommand
accepts a visitor, it calls itsvisitKeepCommand
method.- Specified by:
accept
in classEditCommand<T>
- Parameters:
visitor
- the visitor to be accepted
-