Class WordCompleter


  • public class WordCompleter
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      WordCompleter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> completeWord​(java.lang.String seed)  
      void reset()  
      void train​(java.lang.String[] tokens)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WordCompleter

        public WordCompleter()
    • Method Detail

      • reset

        public void reset()
      • train

        public void train​(java.lang.String[] tokens)
      • completeWord

        public java.util.List<java.lang.String> completeWord​(java.lang.String seed)