506 |
private final WeakEntrySet theEntrySet; |
private final WeakEntrySet theEntrySet; |
507 |
|
|
508 |
/** |
/** |
509 |
* The hash buckets. These are linked lists. |
* The hash buckets. These are linked lists. Package visible for use in |
510 |
|
* nested classes. |
511 |
*/ |
*/ |
512 |
private WeakBucket[] buckets; |
WeakBucket[] buckets; |
513 |
|
|
514 |
/** |
/** |
515 |
* Creates a new weak hash map with default load factor and default |
* Creates a new weak hash map with default load factor and default |
680 |
|
|
681 |
/** |
/** |
682 |
* Removes a bucket from this hash map, if it wasn't removed before |
* Removes a bucket from this hash map, if it wasn't removed before |
683 |
* (e.g. one time through rehashing and one time through reference queue) |
* (e.g. one time through rehashing and one time through reference queue). |
684 |
|
* Package visible for use in nested classes. |
685 |
|
* |
686 |
* @param bucket the bucket to remove. |
* @param bucket the bucket to remove. |
687 |
*/ |
*/ |
688 |
private void internalRemove(WeakBucket bucket) |
void internalRemove(WeakBucket bucket) |
689 |
{ |
{ |
690 |
int slot = bucket.slot; |
int slot = bucket.slot; |
691 |
if (slot == -1) |
if (slot == -1) |