Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Methods
public
static
DiffViewBean
createWordLevelDiff
(String originalLine, String revisedLine)
Creates a DiffViewBean
for the given original and revised text lines.
Parameters
originalLine
| the original line of text |
revisedLine
| the revised line of text |
Returns
- the diff view bean; or null if there was an exception thrown while calculating the diff.
public
List<DiffChunk>
getOriginalChunks
()
Returns
- only the chunks that would have been present in the original text i.e. no Added Chunks
public
List<DiffChunk>
getRevisedChunks
()
Returns
- only the chunks that are present in the revised text i.e. no Deleted Chunks
public
List<DiffChunk>
getUnifiedChunks
()
Returns
- all the chunks in a single list