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
  • Class
    Description
    Walks through EditScript objects.
    Command representing the deletion of one object of the first sequence.
    Abstract base class for all commands used to transform an objects sequence into another one.
    Gathers all the commands needed to transform one objects sequence into another objects sequence.
    Command representing the insertion of one object of the second sequence.
    Command representing the keeping of one object present in both sequences.
    Handles sequences of replacements resulting from a comparison.
    Handles synchronized replacement sequences.
    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.