|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.monitorenter.util.collections.RingBufferArrayFast.ARingBufferIterator
protected abstract class RingBufferArrayFast.ARingBufferIterator
Base for ringbuffer iterators that has access to the ringbuffer by being an non-static inner class.
Field Summary | |
---|---|
protected int |
m_count
The amount of returned instances, needed for knowing if iterator is empty. |
protected int |
m_pos
The index of the next instance to return. |
Method Summary | |
---|---|
boolean |
hasNext()
|
protected abstract void |
incPos()
Increment the internal read position pointer. |
Object |
next()
|
void |
remove()
Not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int m_count
protected int m_pos
Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
Iterator.hasNext()
protected abstract void incPos()
public Object next()
next
in interface Iterator
Iterator.next()
public void remove() throws UnsupportedOperationException
remove
in interface Iterator
UnsupportedOperationException
- always as this is not supported.Iterator.remove()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |