public interface MarkResetIterator<T> extends CloseableIterator<T>, ResettableIterator<T>
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>
Modifier and Type | Method and Description |
---|---|
static <T> MarkResetIterator<T> |
empty() |
void |
mark(T element)
Creates a mark from the provided element.
|
void |
resetToMark()
Rewinds the position of the iterator to the previously marked element.
|
reset
close, closeAfterLast, closeQuietly, collect, concat, concat, concat, filter, first, isEmpty, limit, map, offset, onClose, singleton, size, toCloseable, toCloseable, toCloseable, toList, toSet, transform
forEachRemaining, hasNext, next, remove
void mark(T element)
element
- the element to serve as a markvoid resetToMark()
NoSuchElementException
- if there's no markstatic <T> MarkResetIterator<T> empty()
empty
in interface CloseableIterator<T>
Copyright © 2010-2016 Stardog Union. All Rights Reserved.