14 |
|
* An optionally-bounded {@linkplain BlockingDeque blocking deque} based on |
15 |
|
* linked nodes. |
16 |
|
* |
17 |
< |
* <p> The optional capacity bound constructor argument serves as a |
17 |
> |
* <p>The optional capacity bound constructor argument serves as a |
18 |
|
* way to prevent excessive expansion. The capacity, if unspecified, |
19 |
|
* is equal to {@link Integer#MAX_VALUE}. Linked nodes are |
20 |
|
* dynamically created upon each insertion unless this would bring the |
664 |
|
* an element exists in hasNext(), we must return item read |
665 |
|
* under lock (in advance()) even if it was in the process of |
666 |
|
* being removed when hasNext() was called. |
667 |
< |
**/ |
667 |
> |
*/ |
668 |
|
private E nextItem; |
669 |
|
|
670 |
|
/** |