Class CharsDictionaryMatcher

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.CharSequence characters  
    • Constructor Summary

      Constructors 
      Constructor Description
      CharsDictionaryMatcher​(java.lang.CharSequence chars)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getType()  
      int matches​(java.text.CharacterIterator text_, int maxLength, int[] lengths, int[] count_, int limit, int[] values)
      Find dictionary words that match the text.
      • Methods inherited from class java.lang.Object

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

      • characters

        private java.lang.CharSequence characters
    • Constructor Detail

      • CharsDictionaryMatcher

        public CharsDictionaryMatcher​(java.lang.CharSequence chars)
    • Method Detail

      • matches

        public int matches​(java.text.CharacterIterator text_,
                           int maxLength,
                           int[] lengths,
                           int[] count_,
                           int limit,
                           int[] values)
        Description copied from class: DictionaryMatcher
        Find dictionary words that match the text.
        Specified by:
        matches in class DictionaryMatcher
        Parameters:
        text_ - A CharacterIterator representing the text. The iterator is left after the longest prefix match in the dictionary.
        maxLength - The maximum number of code units to match.
        lengths - An array that is filled with the lengths of words that matched.
        count_ - Filled with the number of elements output in lengths.
        limit - The maximum amount of words to output. Must be less than or equal to lengths.length.
        values - Filled with the weight values associated with the various words.
        Returns:
        The number of characters in text that were matched.
      • getType

        public int getType()
        Specified by:
        getType in class DictionaryMatcher
        Returns:
        the kind of dictionary that this matcher is using