public Trie<T> build() {
        final TrieNode<T> root = TrieNode.createRoot();
        for (Entry<String, T> entry : map.entrySet()) {
            createTrieBranch(root, entry.getKey(), entry.getValue());
        }
        return root;
    }
public Trie < T > build ( ) { final TrieNode < T > root = TrieNode . createRoot ( ) ; for ( Entry < String , T > entry : map . entrySet ( ) ) { createTrieBranch ( root , entry . getKey ( ) , entry . getValue ( ) ) ; } return root ; }
@return A {@link Trie} created from the word-value mappings in this {@link TrieBuilder}.