getAllWordsWithPrefix method

List<String> getAllWordsWithPrefix (String prefix)

Returns all words in the Trie with a given prefix.

Implementation

List<String> getAllWordsWithPrefix(String prefix) {
  StringBuffer fullPrefix = new StringBuffer();
  return _getAllWordsWithPrefixHelper(prefix, _head, fullPrefix);
}