java.lang.Object
org.apache.jena.atlas.iterator.PeekIterator<T>
- All Implemented Interfaces:
Iterator<T>
PeekIterator - is one slot ahead from the wrapped iterator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> PeekIterator<T>static <T> PeekIterator<T>create(PeekIterator<T> iter) element()Peek the next element or throw NoSuchElementExceptionbooleanhasNext()next()peek()Peek the next element or return nullMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
PeekIterator
-
-
Method Details