Package org.apache.commons.text.diff
package org.apache.commons.text.diff
Provides algorithms for diff between strings.
The initial implementation of the Myers algorithm was adapted from the commons-collections sequence package.
- Since:
- 1.0
-
ClassDescriptionThis interface should be implemented by user object to walk through
EditScript
objects.Command representing the deletion of one object of the first sequence.EditCommand<T>Abstract base class for all commands used to transform an objects sequence into another one.EditScript<T>This class gathers all thecommands
needed to transform one objects sequence into another objects sequence.Command representing the insertion of one object of the second sequence.KeepCommand<T>Command representing the keeping of one object present in both sequences.This class handles sequences of replacements resulting from a comparison.This interface is devoted to handle synchronized replacement sequences.It is guaranteed that the comparisons will always be done aso1.equals(o2)
whereo1
belongs to the first sequence ando2
belongs to the second sequence.