static < E > void remove ( E [ ] d , int pos ) { for ( ; ; ) { int next = getMovedPosition ( d , pos ) ; E moved = d [ pos ] = d [ next ] ; if ( moved == null ) return ; // else pos = next ; } }
Removes the element at the given position of the table shifting if necessary other elements so that all elements can be found by linear probing .