public final class Diff
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Diff.Change |
static class |
Diff.ChangeBuilder |
Constructor and Description |
---|
Diff() |
Modifier and Type | Method and Description |
---|---|
static Diff.Change |
buildChanges(java.lang.CharSequence before,
java.lang.CharSequence after) |
static Diff.Change |
buildChanges(int [] array1,
int [] array2) |
static <T> Diff.Change |
buildChanges(T [] objects1,
T [] objects2) |
static int |
translateLine(java.lang.CharSequence before,
java.lang.CharSequence after,
int line,
boolean approximate) |
static int |
translateLine(Diff.Change change,
int line)
Tries to translate given line that pointed to the text before change to the line that points to the same text after the change.
|
static int |
translateLine(Diff.Change change,
int line,
boolean approximate) |
public static Diff.Change buildChanges(java.lang.CharSequence before, java.lang.CharSequence after) throws FilesTooBigForDiffException
FilesTooBigForDiffException
public static <T> Diff.Change buildChanges(T [] objects1, T [] objects2) throws FilesTooBigForDiffException
FilesTooBigForDiffException
public static Diff.Change buildChanges(int [] array1, int [] array2) throws FilesTooBigForDiffException
FilesTooBigForDiffException
public static int translateLine(java.lang.CharSequence before, java.lang.CharSequence after, int line, boolean approximate) throws FilesTooBigForDiffException
FilesTooBigForDiffException
public static int translateLine(Diff.Change change, int line)
change
- target changeline
- target line before changepublic static int translateLine(Diff.Change change, int line, boolean approximate)