Class InsertCommand<T>
java.lang.Object
org.apache.commons.collections4.sequence.EditCommand<T>
org.apache.commons.collections4.sequence.InsertCommand<T>
- Type Parameters:
- T- the type of object to apply this command.
Command representing the insertion of one object of the second sequence.
 
 When one object of the second sequence has no corresponding object in the
 first 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 insertion of this object. The objects embedded in
 these type of commands always come from the second sequence.
 
- Since:
- 4.0
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.commons.collections4.sequence.EditCommandgetObject
- 
Constructor Details- 
InsertCommandSimple constructor. Creates a new instance of InsertCommand- Parameters:
- object- the object of the second sequence that should be inserted
 
 
- 
- 
Method Details- 
acceptAccept a visitor. When anInsertCommandaccepts a visitor, it calls itsvisitInsertCommandmethod.- Specified by:
- acceptin class- EditCommand<T>
- Parameters:
- visitor- the visitor to be accepted
 
 
-