void addEntry ( int hash , K key , V value , int bucketIndex ) { table [ bucketIndex ] = new Entry < K , V > ( hash , key , value , table [ bucketIndex ] ) ; if ( ! auto_commit ) table [ bucketIndex ] . setStatus ( Entry . ADDED , getCurrentThreadId ( ) ) ; if ( size ++ >= threshold ) resize ( 2 * table . length ) ; }
Add a new entry with the specified key value and hash code to the specified bucket . It is the responsibility of this method to resize the table if appropriate .