private static < K , V > V removeEntry ( K [ ] keys , V [ ] values , Object key ) { int pos = LinearProbing . getPosition ( keys , key ) ; if ( keys [ pos ] == null ) return null ; // else V result = values [ pos ] ; LinearProbing . remove ( keys , values , pos ) ; return result ; }
Remove the entry in the keys and values such that the key of the entry is equal to the given object according to the equality function .