private fun segment(key: Any): Int { 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 .