public boolean endsWith(String word)
    {
        word = reverse(word);
        return trie.commonPrefixSearchWithValue(word).size() > 0;
    }
public boolean endsWith ( String word ) { word = reverse ( word ) ; return trie . commonPrefixSearchWithValue ( word ) . size ( ) > 0 ; }
词语是否以该词典中的某个单词结尾
@param word
@return