static < E > boolean add ( E [ ] d , E e ) { int pos = getPosition ( d , e ) ; if ( d [ pos ] == null ) { d [ pos ] = e ; return true ; } // else the element is already there return false ; }
Adds the element to the set represented by given data array if it did not contain there already .