public final class Differ<T> extends Object
| Constructor and Description |
|---|
Differ(int stackSize,
int matchCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T aStr,
T bStr) |
void |
addA(T aStr) |
void |
addB(T bStr) |
void |
checkMatch(boolean finalPass) |
int |
find(T[] aArr,
int aStart,
int aEnd,
T[] bArr,
int bStart,
int bEnd)
Convenient utility
finds a segment of the first array in the second array.
|
T |
getA(int offset) |
int |
getACount() |
int |
getALine(int offset) |
T |
getB(int offset) |
int |
getBCount() |
int |
getBLine(int offset) |
public Differ(int stackSize,
int matchCount)
stackSize - The size of the largest difference you expect.matchCount - The number of items that have to be the same to count as a matchpublic void addA(T aStr)
public void addB(T bStr)
public int getALine(int offset)
public T getA(int offset)
public int getACount()
public int getBCount()
public int getBLine(int offset)
public T getB(int offset)
public void checkMatch(boolean finalPass)