private void doAddWord ( final CharBuffer buffer ) { if ( ! buffer . hasRemaining ( ) ) { fullWord = true ; return ; } final char c = buffer . get ( ) ; TrieNodeBuilder builder = subnodes . get ( c ) ; if ( builder == null ) { builder = new TrieNodeBuilder ( ) ; subnodes . put ( c , builder ) ; } builder . doAddWord ( buffer ) ; }
Add a word