public TreeMap < Character , ? extends TrieNode > getChildrenMap ( ) { TreeMap < Character , TrieNode > map = new TreeMap <> ( ) ; getChildren ( ) . forEach ( x -> map . put ( x . getChar ( ) , x ) ) ; return map ; }
Gets children map .