public CharsTrie resetToState ( State state ) { if ( chars_ == state . chars && chars_ != null && root_ == state . root ) { pos_ = state . pos ; remainingMatchLength_ = state . remainingMatchLength ; } else { throw new IllegalArgumentException ( "incompatible trie state" ) ; } return this ; }
Resets this trie to the saved state .