Package org.apache.commons.collections4
Class ListUtils.LcsVisitor<E>
java.lang.Object
org.apache.commons.collections4.ListUtils.LcsVisitor<E>
- All Implemented Interfaces:
CommandVisitor<E>
- Enclosing class:
ListUtils
A helper class used to construct the longest common subsequence.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
visitDeleteCommand
(E object) Method called when a delete command is encountered.void
visitInsertCommand
(E object) Method called when an insert command is encountered.void
visitKeepCommand
(E object) Method called when a keep command is encountered.
-
Field Details
-
sequence
-
-
Constructor Details
-
LcsVisitor
public LcsVisitor()
-
-
Method Details
-
visitInsertCommand
Description copied from interface:CommandVisitor
Method called when an insert command is encountered.- Specified by:
visitInsertCommand
in interfaceCommandVisitor<E>
- Parameters:
object
- object to insert (this object comes from the second sequence)
-
visitDeleteCommand
Description copied from interface:CommandVisitor
Method called when a delete command is encountered.- Specified by:
visitDeleteCommand
in interfaceCommandVisitor<E>
- Parameters:
object
- object to delete (this object comes from the first sequence)
-
visitKeepCommand
Description copied from interface:CommandVisitor
Method called when a keep command is encountered.- Specified by:
visitKeepCommand
in interfaceCommandVisitor<E>
- Parameters:
object
- object to keep (this object comes from the first sequence)
-
getSubSequence
-