|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.beanlib.util.concurrent.LinkedBlockingDeque.AbstractItr
private abstract class LinkedBlockingDeque.AbstractItr
Base class for Iterators for LinkedBlockingDeque
Field Summary | |
---|---|
private LinkedBlockingDeque.Node<E> |
lastRet
Node returned by most recent call to next. |
(package private) LinkedBlockingDeque.Node<E> |
next
The next node to return in next |
(package private) E |
nextItem
nextItem holds on to item fields because once we claim that an element exists in hasNext(), we must return item read under lock (in advance()) even if it was in the process of being removed when hasNext() was called. |
Constructor Summary | |
---|---|
LinkedBlockingDeque.AbstractItr()
|
Method Summary | |
---|---|
(package private) abstract void |
advance()
Advances next, or if not yet initialized, sets to first node. |
boolean |
hasNext()
|
E |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
LinkedBlockingDeque.Node<E> next
E nextItem
private LinkedBlockingDeque.Node<E> lastRet
Constructor Detail |
---|
LinkedBlockingDeque.AbstractItr()
Method Detail |
---|
abstract void advance()
public boolean hasNext()
hasNext
in interface Iterator<E>
public E next()
next
in interface Iterator<E>
public void remove()
remove
in interface Iterator<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |