Class LCSS

java.lang.Object
org.ec4j.core.ide.completion.LCSS

final class LCSS extends Object
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 Classes
    Modifier and Type
    Class
    Description
    (package private) static class 
    Copied 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
    Modifier and Type
    Field
    Description
    private static final int[]
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (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 boolean
    containsSubsequence(String completion, String token)
     
    (package private) static List<int[]>
    findSequences(String completion, String token)
     
    (package private) static int
    scoreSubsequence(int[] s1)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EMPTY_SEQUENCE

      private static final int[] EMPTY_SEQUENCE
  • Constructor Details

    • LCSS

      private LCSS()
  • Method Details

    • bestSubsequence

      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.
    • scoreSubsequence

      static int scoreSubsequence(int[] s1)
    • findSequences

      static List<int[]> findSequences(String completion, String token)
    • containsSubsequence

      static boolean containsSubsequence(String completion, String token)