| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
abstract LinkedList<Change> |
getChangeList()
Get the finished changelist.
|
DiffOptions |
getOptions()
Get the diff options used when diffing.
|
int |
hashCode() |
int |
levenshtein()
Compute the Levenshtein distance; the number of inserted, deleted or
substituted characters.
|
String |
prettyHtml()
Convert a DiffBase list into a pretty HTML report.
|
String |
text1()
Compute and return the source text (all equalities and deletions).
|
String |
text2()
Compute and return the destination text (all equalities and insertions).
|
String |
toDelta()
Crush the diff into an encoded string which describes the operations
required to transform text1 into text2.
|
String |
toString() |
int |
xIndex(int loc)
loc is a location in text1, compute and return the equivalent location in
text2.
|
public DiffOptions getOptions()
public abstract LinkedList<Change> getChangeList()
public String prettyHtml()
public String text1()
public String text2()
public int levenshtein()
public String toDelta()
public int xIndex(int loc)
e.g. "The cat" vs "The big cat", 1->1, 5->8
loc - Location within text1.Copyright © 2017. All rights reserved.