Top Description Interfaces Classes
[default module]

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

Interface Summary

Modifier and TypeInterface and Description
public interface
CommandVisitor<
object type
T
>

Walks through EditScript objects.

public interface
ReplacementsHandler<
object type
T
>

Handles synchronized replacement sequences.

Class Summary

Modifier and TypeClass and Description
public class
DeleteCommand<
object type
T
>

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

public abstract class
EditCommand<
object type
T
>

Abstract base class for all commands used to transform an objects sequence into another one.

public class
EditScript<
object type
T
>

Gathers all the commands needed to transform one objects sequence into another objects sequence.

public class
InsertCommand<
object type
T
>

Command representing the insertion of one object of the second sequence.

public class
KeepCommand<
object type
T
>

Command representing the keeping of one object present in both sequences.

public class
ReplacementsFinder<
object type
T
>

Handles sequences of replacements resulting from a comparison.

public class
StringsComparator

It is guaranteed that the comparisons will always be done as o1.equals(o2) where o1 belongs to the first sequence and o2 belongs to the second sequence.