code: public TrieBuilder<T> setAll(Map<String, T> map) {
          for (Entry<String, T> entry : map.entrySet()) {
              set(entry.getKey(), entry.getValue());
          }
          return this;
      }
docs: Set all word-value pairs in the given map to the Trie.
  If any previous mapping exists, it will be overwritten.
  
  @param map Map to set word-value pairs from.
  @return {@code this}, for chaining.