## Uses of Class
org.crosswire.common.diff.Difference

- Packages that use Difference
  Package | Description
  --- | ---
  org.crosswire.common.diff | An implementation of Diff that works within the line.
  org.crosswire.jsword.book | The Book package provides an interface to a real store of data.

- - ### Uses of Difference in org.crosswire.common.diff

    Fields in org.crosswire.common.diff with type parameters of type Difference
    Modifier and Type | Field and Description
    --- | ---
    `private List<Difference>` | PatchEntry.`diffs`

    Methods in org.crosswire.common.diff that return Difference
    Modifier and Type | Method and Description
    --- | ---
    `Difference` | PatchEntry.`getFirstDifference()`
    `Difference` | PatchEntry.`getLastDifference()`
    `Difference` | PatchEntry.`removeFirstDifference()`

    Methods in org.crosswire.common.diff that return types with arguments of type Difference
    Modifier and Type | Method and Description
    --- | ---
    `List<Difference>` | Diff.`compare()` Find the differences between two texts.
    `private List<Difference>` | Diff.`compute()` Find the differences between two texts.
    `List<Difference>` | DifferenceEngine.`generate()` Explore the intersection points between the two texts.
    `Iterator<Difference>` | PatchEntry.`iterator()`
    `protected List<Difference>` | DifferenceEngine.`path1(List<Set<String>> vMap, String newSource, String newTarget)` Work from the middle back to the start to determine the path.
    `protected List<Difference>` | DifferenceEngine.`path2(List<Set<String>> vMap, String newSource, String newTarget)` Work from the middle back to the end to determine the path.

    Methods in org.crosswire.common.diff with parameters of type Difference
    Modifier and Type | Method and Description
    --- | ---
    `void` | PatchEntry.`addDifference(Difference diff)`

    Method parameters in org.crosswire.common.diff with type arguments of type Difference
    Modifier and Type | Method and Description
    --- | ---
    `static void` | DiffCleanup.`cleanupEfficiency(List<Difference> diffs)` Reduce the number of edits by eliminating operationally trivial equalities.
    `static void` | DiffCleanup.`cleanupMerge(List<Difference> diffs)` Reorder and merge like edit sections.
    `static void` | DiffCleanup.`cleanupSemantic(List<Difference> diffs)` Reduce the number of edits by eliminating semantically trivial equalities.
    `Patch` | Patch.`make(String source, String target, List<Difference> diffList)` Compute a list of patches to turn text1 into text2.
    `String` | Diff.`prettyHtml(List<Difference> diffs)` Convert a Difference list into a pretty HTML report.
    `protected void` | PatchEntry.`setDifferences(List<Difference> newDiffs)`
    `int` | Diff.`xIndex(List<Difference> diffs, int loc)` loc is a location in source, compute and return the equivalent location in target.

    Constructor parameters in org.crosswire.common.diff with type arguments of type Difference
    Constructor and Description
    `Patch(String source, String target, List<Difference> diffs)` Create a patch that can turn text1 into text2.

  - ### Uses of Difference in org.crosswire.jsword.book

    Method parameters in org.crosswire.jsword.book with type arguments of type Difference
    Modifier and Type | Method and Description
    --- | ---
    `static List<org.jdom2.Content>` | OSISUtil.`diffToOsis(List<Difference> diffs)` Convert a Difference list into a pretty HTML report.