Package org.deckfour.xes.model.buffered
Class XTraceIterator
- java.lang.Object
-
- org.deckfour.xes.model.buffered.XTraceIterator
-
public class XTraceIterator extends java.lang.Object implements java.util.ListIterator<XEvent>
This class implements an iterator over the buffered implementation for the XTrace interface.- Author:
- Christian W. Guenther (christian@deckfour.org)
- See Also:
Iterator
-
-
Field Summary
Fields Modifier and Type Field Description protected XTraceBufferedImpllistThe trace to be iterated over.protected intpositionCurrent position of the iterator.
-
Constructor Summary
Constructors Constructor Description XTraceIterator(XTraceBufferedImpl aList)Constructs a new iterator on the specifiedXTraceBufferedImpl.XTraceIterator(XTraceBufferedImpl aList, int aPosition)Constructs a new iterator on the specifiedXTraceBufferedImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(XEvent o)booleanhasNext()booleanhasPrevious()XEventnext()intnextIndex()XEventprevious()intpreviousIndex()voidremove()voidset(XEvent o)
-
-
-
Field Detail
-
list
protected XTraceBufferedImpl list
The trace to be iterated over.
-
position
protected int position
Current position of the iterator.
-
-
Constructor Detail
-
XTraceIterator
public XTraceIterator(XTraceBufferedImpl aList)
Constructs a new iterator on the specifiedXTraceBufferedImpl.- Parameters:
aList- XTraeBufferedImpl, over which the created iterator iterates.
-
XTraceIterator
public XTraceIterator(XTraceBufferedImpl aList, int aPosition)
Constructs a new iterator on the specifiedXTraceBufferedImpl.- Parameters:
aList- XTraeBufferedImpl, over which the created iterator iterates.aPosition- The starting position of the iterator.
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public XEvent next()
-
remove
public void remove()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfacejava.util.ListIterator<XEvent>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfacejava.util.ListIterator<XEvent>
-
previous
public XEvent previous()
- Specified by:
previousin interfacejava.util.ListIterator<XEvent>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfacejava.util.ListIterator<XEvent>
-
-