public boolean contains ( String key ) { if ( key == null ) throw new IllegalArgumentException ( "key cannot be null" ) ; TST current ; boolean result ; do { current = prefixIndexVolatile ; result = current . contains ( key ) ; } while ( current != this . prefixIndexVolatile ) ; return result ; }
Check if the given key exists in the index .