Class TrieImpl

  • All Implemented Interfaces:
    Trie

    public class TrieImpl
    extends java.lang.Object
    implements Trie
    • Constructor Summary

      Constructors 
      Constructor Description
      TrieImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String s)  
      java.lang.String getLonguestMatchStartingIn​(java.lang.String s)  
      boolean remove​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

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

      • TrieImpl

        public TrieImpl()
    • Method Detail

      • add

        public void add​(java.lang.String s)
        Specified by:
        add in interface Trie
      • remove

        public boolean remove​(java.lang.String s)
      • getLonguestMatchStartingIn

        public java.lang.String getLonguestMatchStartingIn​(java.lang.String s)
        Specified by:
        getLonguestMatchStartingIn in interface Trie