com.continuent.tungsten.common.patterns.order
Class RingBuffer.RingBufferIterator<E>

java.lang.Object
  extended by com.continuent.tungsten.common.patterns.order.RingBuffer.RingBufferIterator<E>
All Implemented Interfaces:
java.util.Iterator<E>
Enclosing class:
RingBuffer<T>

public class RingBuffer.RingBufferIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>

This class defines a RingBufferIterator

Version:
1.0
Author:
Edward Archibald

Constructor Summary
RingBuffer.RingBufferIterator(RingBuffer<E> ringBuffer)
          Creates a new RingBufferIterator object
 
Method Summary
 boolean hasNext()
          
 E next()
          
 void remove()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RingBuffer.RingBufferIterator

public RingBuffer.RingBufferIterator(RingBuffer<E> ringBuffer)
Creates a new RingBufferIterator object

Parameters:
ringBuffer -
Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface java.util.Iterator<E>
See Also:
Iterator.hasNext()

next

public E next()

Specified by:
next in interface java.util.Iterator<E>
See Also:
Iterator.next()

remove

public void remove()

Specified by:
remove in interface java.util.Iterator<E>
See Also:
Iterator.remove()