Package org.apache.maven.surefire.util
Class CloseableIterator<T>
java.lang.Object
org.apache.maven.surefire.util.CloseableIterator<T>
- Type Parameters:
T- the type of elements returned by this iterator
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
TestsToRun.ClassesIterator
This iterator is marked as stopped if
isClosed() returns true.
If the iterator has been closed before calling hasNext() then the method returns false.
If the iterator was closed after hasNext returns true but before next(), the
method next() throws NoSuchElementException.
The method remove() throws IllegalStateException if the iterator has been closed.- Since:
- 2.19.1
-
Field Details
-
finishCurrentIteration
-
-
Constructor Details
-
CloseableIterator
public CloseableIterator()
-
-
Method Details
-
isClosed
protected abstract boolean isClosed() -
doHasNext
protected abstract boolean doHasNext() -
doNext
-
doRemove
protected abstract void doRemove() -
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
popMarker
private boolean popMarker()- Returns:
trueif marker changed from NULL to anything
-