286 |
|
} |
287 |
|
|
288 |
|
/** |
289 |
< |
* Set table to new HashEntry array. |
289 |
> |
* Sets table to new HashEntry array. |
290 |
|
* Call only while holding lock or in constructor. |
291 |
|
*/ |
292 |
|
void setTable(HashEntry[] newTable) { |
295 |
|
} |
296 |
|
|
297 |
|
/** |
298 |
< |
* Return properly casted first entry of bin for given hash |
298 |
> |
* Returns properly casted first entry of bin for given hash. |
299 |
|
*/ |
300 |
|
HashEntry<K,V> getFirst(int hash) { |
301 |
|
HashEntry[] tab = table; |
888 |
|
* else |
889 |
|
* return map.get(key); |
890 |
|
* </pre> |
891 |
< |
* Except that the action is performed atomically. |
891 |
> |
* except that the action is performed atomically. |
892 |
|
* @param key key with which the specified value is to be associated. |
893 |
|
* @param value value to be associated with the specified key. |
894 |
|
* @return previous value associated with specified key, or <tt>null</tt> |