public int putAtIndex ( Object key , int value , int index ) { Object old = objs [ index ] ; if ( old == null || old == DELETED ) { objs [ index ] = key ; ints [ index ] = value ; if ( old != DELETED ) num_bindings ++ ; if ( 3 * num_bindings >= 2 * objs . length ) rehash ( ) ; return - 1 ; } else { // update existing mapping int oldValue = ints [ index ] ; ints [ index ] = value ; return oldValue ; } }
Associates the specified key with the specified value in this map .