public int findNode ( Object elementDescriptor ) { int hash = m_hash . getHash ( elementDescriptor ) ; int ptr = getFirstInBucket ( hash ) ; ; while ( ptr != - 1 ) { int e = m_lists . getElement ( ptr ) ; if ( m_hash . equal ( elementDescriptor , e ) ) { return ptr ; } ptr = m_lists . getNext ( ptr ) ; } return - 1 ; }
the given element descriptor .