Class RingBufferArrayFast.ARingBufferIterator
java.lang.Object
info.monitorenter.util.collections.RingBufferArrayFast.ARingBufferIterator
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
- RingBufferArrayFast<T>
protected abstract class RingBufferArrayFast.ARingBufferIterator
extends Object
implements Iterator<T>
Base for ring buffer iterators that has access to the ring buffer by being
an non-static inner class.
- Version:
- $Revision: 1.13 $
- Author:
- Achim Westermann
-
Field Details
-
m_count
protected int m_countThe amount of returned instances, needed for knowing if iterator is empty. -
m_pos
protected int m_posThe index of the next instance to return.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
hasNext
public boolean hasNext() -
incPos
protected abstract void incPos()Increment the internal read position pointer. -
next
-
remove
Not supported.- Specified by:
remove
in interfaceIterator<T>
- Throws:
UnsupportedOperationException
- always as this is not supported.- See Also:
-