public abstract class IteratorIterator extends IteratorAdapter
Constructor and Description |
---|
IteratorIterator(java.util.Iterator i)
Construct a new iterator over the contents of the given iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Test if there are more elements.
|
protected abstract java.util.Iterator |
iterator(java.lang.Object o)
Convert an object returned by the top-level iterator
into a sub-iterator.
|
java.lang.Object |
next()
Return the next object.
|
remove
public IteratorIterator(java.util.Iterator i)
i
- The iteratorpublic boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in class IteratorAdapter
protected abstract java.util.Iterator iterator(java.lang.Object o)
public java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator
next
in class IteratorAdapter
java.util.NoSuchElementException