public abstract class IRIterator<E extends Traversable>
extends java.lang.Object
implements java.util.Iterator<E>
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
hasNext()
Returns true if the iteration has more elements.
|
abstract E |
next()
Returns the next element in the iteration.
|
E |
next(java.lang.Class<? extends Traversable> c)
Returns the next element in the iteration that is an instance of a
certain class.
|
E |
next(java.util.Set s)
Returns the next element in the iteration that is an instance of a class
in the set.
|
E |
nextExcept(java.util.Set s)
Returns the next element in the iteration that is not an instance of a
class in the set.
|
void |
remove()
This operation is not supported.
|
abstract void |
reset()
Moves the iterator back to the beginning of the sequence.
|
public abstract boolean hasNext()
hasNext in interface java.util.Iterator<E extends Traversable>public abstract E next()
next in interface java.util.Iterator<E extends Traversable>java.util.NoSuchElementException - if there is no element left.public E next(java.lang.Class<? extends Traversable> c) throws java.util.NoSuchElementException
c - The class of which the next element must be a instance.java.util.NoSuchElementException - if there are no elements of class c.public E next(java.util.Set s) throws java.util.NoSuchElementException
s - A set of classes of which the next element must be an instance.java.util.NoSuchElementException - if there are no elements of classes in s.public E nextExcept(java.util.Set s) throws java.util.NoSuchElementException
s - A set of classes of which the next element must not be an
instance.java.util.NoSuchElementException - if there are no elements that are not of
classes in s.public void remove()
remove in interface java.util.Iterator<E extends Traversable>public abstract void reset()