org.processmining.framework.log.rfb
Class AuditTrailEntryListIterator

java.lang.Object
  extended by org.processmining.framework.log.rfb.AuditTrailEntryListIterator
All Implemented Interfaces:
java.util.Iterator

public class AuditTrailEntryListIterator
extends java.lang.Object
implements java.util.Iterator

Implements an iterator over an instance of AuditTrailEntryList.

Note: Potential I/O errors are not thrown by this iterator in order to retain conformance with the java.util.Iterator interface. However, I/O errors are reported to STDERR when occurring.

WARNING: If you retrieve more than one iterator from one audit trail entry list, consistency between iterators is no longer guaranteed. Further, the iterator is implemented accessing the underlying list through its random access interface. This implies that, if the list is modified during the lifetime of an iterator on it (be it using another iterator or the direct access methods), it is not guaranteed that iterators on this list will retain consistency and return correct results from that point onwards.

Author:
Christian W. Guenther (christian at deckfour dot org)
See Also:
AuditTrailEntryList, Iterator

Field Summary
protected  AuditTrailEntryList list
           
protected  int position
           
 
Constructor Summary
AuditTrailEntryListIterator(AuditTrailEntryList anATEList)
          Constructs a new iterator on the specified AuditTrailEntryList.
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected AuditTrailEntryList list

position

protected int position
Constructor Detail

AuditTrailEntryListIterator

public AuditTrailEntryListIterator(AuditTrailEntryList anATEList)
Constructs a new iterator on the specified AuditTrailEntryList.

Parameters:
anATEList - Audit trail entry list, over which the created iterator iterates.
Method Detail

hasNext

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

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

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