Package org.apache.jena.atlas.iterator
Class IteratorSlotted<T>
- java.lang.Object
-
- org.apache.jena.atlas.iterator.IteratorSlotted<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>,IteratorCloseable<T>,Closeable
- Direct Known Subclasses:
IteratorTruncate
public abstract class IteratorSlotted<T> extends java.lang.Object implements IteratorCloseable<T>
An Iterator with a one slot lookahead.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()Tnext()final - autoclose and registration relies on it - implement moveToNextBinding()Tpeek()Look at the next element - returns null when there is no elementTpeek(T dft)Look at the next element - returns dft when there is no element
-
-
-
Method Detail
-
hasNext
public final boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<T>
-
next
public final T next()
final - autoclose and registration relies on it - implement moveToNextBinding()- Specified by:
nextin interfacejava.util.Iterator<T>
-
peek
public final T peek()
Look at the next element - returns null when there is no element
-
-