private int segment(Object key){
  return Math.abs(key.hashCode() % size);
}

private int segment ( Object key ) { return Math . abs ( key . hashCode ( ) % size ) ; }
this method performs the translation of the key hash code to the segment index within the list . translation is done by acquiring the modulus of the hash and the list size .
