public int addElement ( int element , int hash ) { int bit_bucket = hash % ( m_bit_filter . length << 5 ) ; m_bit_filter [ ( bit_bucket >> 5 ) ] |= ( 1 << ( bit_bucket & 0x1F ) ) ; int bucket = hash % m_hashBuckets . size ( ) ; int list = m_hashBuckets . get ( bucket ) ; if ( list == - 1 ) { list = m_lists . createList ( ) ; m_hashBuckets . set ( bucket , list ) ; } int node = m_lists . addElement ( list , element ) ; return node ; }
Adds new element to the hash table .