uk.org.ogsadai.common
Class FIFOQueue.LocalIterator
java.lang.Object
|
+--uk.org.ogsadai.common.FIFOQueue.LocalIterator
- All Implemented Interfaces:
- java.util.Iterator
- Enclosing class:
- FIFOQueue
- protected class FIFOQueue.LocalIterator
- extends java.lang.Object
- implements java.util.Iterator
Method Summary |
private void |
checkUnmodified()
Check the queue has not been modified since the iterator
was created. |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mExpectedModificationCount
private long mExpectedModificationCount
mCursor
private int mCursor
mInvocation
private int mInvocation
mElementCount
private int mElementCount
FIFOQueue.LocalIterator
public FIFOQueue.LocalIterator()
- Create a new iterator.
checkUnmodified
private void checkUnmodified()
throws java.util.ConcurrentModificationException
- Check the queue has not been modified since the iterator
was created.
- Throws:
java.util.ConcurrentModificationException
- if queue
has been modified since iterator was created.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
throws java.util.NoSuchElementException,
java.util.ConcurrentModificationException
- Specified by:
next
in interface java.util.Iterator
java.util.NoSuchElementException
java.util.ConcurrentModificationException
remove
public void remove()
throws java.lang.IllegalStateException,
java.lang.UnsupportedOperationException
- Specified by:
remove
in interface java.util.Iterator
java.lang.IllegalStateException
java.lang.UnsupportedOperationException