org.openjena.atlas.iterator
Class IteratorSlotted<T>

java.lang.Object
  extended by org.openjena.atlas.iterator.IteratorSlotted<T>
All Implemented Interfaces:
Iterator<T>

public abstract class IteratorSlotted<T>
extends Object
implements Iterator<T>

An Iterator with a one slot lookahead.


Method Summary
 void close()
           
 boolean hasNext()
           
 T next()
          final - autoclose and registration relies on it - implement moveToNextBinding()
 T peek()
          Look at the next element - returns null when there is no element
 T peek(T dft)
          Look at the next element - returns dft when there is no element
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public final boolean hasNext()
Specified by:
hasNext in interface Iterator<T>

next

public final T next()
final - autoclose and registration relies on it - implement moveToNextBinding()

Specified by:
next in interface Iterator<T>

peek

public final T peek()
Look at the next element - returns null when there is no element


peek

public final T peek(T dft)
Look at the next element - returns dft when there is no element


remove

public final void remove()
Specified by:
remove in interface Iterator<T>

close

public final void close()


Licenced under the Apache License, Version 2.0