public static Trie fromString ( Path . ID id ) { if ( id instanceof Trie ) { return ( ( Trie ) id ) ; } Trie r = ROOT ; for ( int i = 0 ; i != id . size ( ) ; ++ i ) { r = r . append ( id . get ( i ) ) ; } return r ; }
Construct a Trie from a Path ID .