Class RingBufferArrayFast.ARingBufferIterator
- java.lang.Object
-
- info.monitorenter.util.collections.RingBufferArrayFast.ARingBufferIterator
-
- All Implemented Interfaces:
java.util.Iterator<T>
- Enclosing class:
- RingBufferArrayFast<T>
protected abstract class RingBufferArrayFast.ARingBufferIterator extends java.lang.Object implements java.util.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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()booleanhasNext()protected abstract voidincPos()Increment the internal read position pointer.Tnext()voidremove()Not supported.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<T>- See Also:
Iterator.hasNext()
-
incPos
protected abstract void incPos()
Increment the internal read position pointer.
-
next
public T next()
- Specified by:
nextin interfacejava.util.Iterator<T>- See Also:
Iterator.next()
-
remove
public void remove() throws java.lang.UnsupportedOperationExceptionNot supported.- Specified by:
removein interfacejava.util.Iterator<T>- Throws:
java.lang.UnsupportedOperationException- always as this is not supported.- See Also:
Iterator.remove()
-
-