Package htsjdk.samtools.util
Class PeekIterator<T>
java.lang.Object
htsjdk.samtools.util.PeekIterator<T>
- All Implemented Interfaces:
Iterator<T>
Wrapper around an iterator that enables non-destructive peeking at the next element that would
be returned by next()
-
Constructor Details
-
PeekIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
peek
- Returns:
- the next element in the iteration, but without removing it, so the next call to next() or peek() will return the same element as returned by the current call to peek().
-
remove
public void remove()Unsupported -
getUnderlyingIterator
- Returns:
- the iterator wrapped by this object.
-