public TrieBuilder < T > set ( String word , T value ) { assertNotEmptyWord ( word ) ; // Save the word-value pair in the map. The actual construction will be done later. map . put ( word , value ) ; return this ; }
Set a word - value mapping on the Trie . If a previous mapping exists it will be overwritten . Otherwise will create a new word - value mapping .