Package org.ec4j.core.ide.completion
Class LCSS
java.lang.Object
org.ec4j.core.ide.completion.LCSS
Copied from
https://github.com/eclipse/recommenders/blob/master/plugins/org.eclipse.recommenders.subwords.rcp/src/org/eclipse/recommenders/internal/subwords/rcp/LCSS.java
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classCopied from https://github.com/eclipse/recommenders/blob/master/plugins/org.eclipse.recommenders.subwords.rcp/src/org/eclipse/recommenders/internal/subwords/rcp/SequenceFinder.java -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static int[]bestSubsequence(String completion, String token) Returns the best, i.e, the longest continuous sequence - or the empty sequence if no subsequence could be found.(package private) static booleancontainsSubsequence(String completion, String token) (package private) static List<int[]> findSequences(String completion, String token) (package private) static intscoreSubsequence(int[] s1)
-
Field Details
-
EMPTY_SEQUENCE
private static final int[] EMPTY_SEQUENCE
-
-
Constructor Details
-
LCSS
private LCSS()
-
-
Method Details
-
bestSubsequence
Returns the best, i.e, the longest continuous sequence - or the empty sequence if no subsequence could be found. -
scoreSubsequence
static int scoreSubsequence(int[] s1) -
findSequences
-
containsSubsequence
-