Class RangeComparatorLCS
java.lang.Object
org.eclipse.compare.internal.LCS
org.eclipse.compare.rangedifferencer.RangeComparatorLCS
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IRangeComparatorprivate final IRangeComparatorprivate int[][] -
Constructor Summary
ConstructorsConstructorDescriptionRangeComparatorLCS(IRangeComparator comparator1, IRangeComparator comparator2) -
Method Summary
Modifier and TypeMethodDescriptionstatic RangeDifference[]findDifferences(LCSSettings settings, IRangeComparator left, IRangeComparator right) protected intprotected intprotected voidinitializeLcs(int lcsLength) protected booleanisRangeEqual(int i1, int i2) protected voidsetLcs(int sl1, int sl2) Methods inherited from class org.eclipse.compare.internal.LCS
getLength, longestCommonSubsequence
-
Field Details
-
comparator1
-
comparator2
-
lcs
private int[][] lcs
-
-
Constructor Details
-
RangeComparatorLCS
-
-
Method Details
-
findDifferences
public static RangeDifference[] findDifferences(LCSSettings settings, IRangeComparator left, IRangeComparator right) -
getLength1
protected int getLength1()- Specified by:
getLength1in classLCS
-
getLength2
protected int getLength2()- Specified by:
getLength2in classLCS
-
initializeLcs
protected void initializeLcs(int lcsLength) - Specified by:
initializeLcsin classLCS
-
isRangeEqual
protected boolean isRangeEqual(int i1, int i2) - Specified by:
isRangeEqualin classLCS
-
setLcs
protected void setLcs(int sl1, int sl2) -
getDifferences
-