Package ghidra.program.util
Class CodeUnitLCS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intReturns the length of the x sequenceprotected intReturns the length of the y sequencebooleanReturns true if the value of x and y matchprotected CodeUnitContainervalueOfX(int index) Gets the value of the x sequence at the given index, where index is 1-basedprotected CodeUnitContainervalueOfY(int index) Gets the value of the y sequence at the given index, where index is 1-basedMethods inherited from class generic.algorithms.Lcs
doGetLcs, getLcs, getLcs, getSizeLimit, setSizeLimit
-
Constructor Details
-
CodeUnitLCS
-
-
Method Details
-
lengthOfX
protected int lengthOfX()Description copied from class:LcsReturns the length of the x sequence- Specified by:
lengthOfXin classLcs<CodeUnitContainer>- Returns:
- the length of the x sequence
-
lengthOfY
protected int lengthOfY()Description copied from class:LcsReturns the length of the y sequence- Specified by:
lengthOfYin classLcs<CodeUnitContainer>- Returns:
- the length of the y sequence
-
matches
Description copied from class:LcsReturns true if the value of x and y match- Specified by:
matchesin classLcs<CodeUnitContainer>- Parameters:
x- the x-sequence element of interesty- the y-sequence element of interest- Returns:
- true if
xmatchesy; false otherwise
-
valueOfX
Description copied from class:LcsGets the value of the x sequence at the given index, where index is 1-based- Specified by:
valueOfXin classLcs<CodeUnitContainer>- Parameters:
index- the 1-based position of interest in the x sequence- Returns:
- the value in the x sequence at
index
-
valueOfY
Description copied from class:LcsGets the value of the y sequence at the given index, where index is 1-based- Specified by:
valueOfYin classLcs<CodeUnitContainer>- Parameters:
index- the 1-based position of interest in the Y sequence- Returns:
- the value in the y sequence at
index
-