public class

WordLevelDiffer

extends Object
java.lang.Object
   ↳ com.atlassian.diff.WordLevelDiffer

Class Overview

Diffs words in a line of text.

Summary

Public Constructors
WordLevelDiffer()
Public Methods
static List<DiffChunk> diffLine(String originalLine, String revisedLine)
Returns a list of chunks that contain text and the status of the text - unchanged, added or deleted.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WordLevelDiffer ()

Public Methods

public static List<DiffChunk> diffLine (String originalLine, String revisedLine)

Returns a list of chunks that contain text and the status of the text - unchanged, added or deleted.

Parameters
originalLine the original line
revisedLine the revised line
Returns
  • a list of chunks
Throws
DifferentiationFailedException