org.jgroups.util
Class RingBuffer.RingBufferIterator<T>

java.lang.Object
  extended by org.jgroups.util.RingBuffer.RingBufferIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>
Enclosing class:
RingBuffer<T>

protected class RingBuffer.RingBufferIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>


Field Summary
protected  T[] buffer
           
protected  long current
           
 
Constructor Summary
RingBuffer.RingBufferIterator(T[] buffer)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected final T[] buffer

current

protected long current
Constructor Detail

RingBuffer.RingBufferIterator

public RingBuffer.RingBufferIterator(T[] buffer)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T>


Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.