Top Description Methods
org.jdom2.util

public Interface IteratorIterable<T>

extends Iterable<T>, Iterator<T>
Known Direct Implementers
org.jdom2.FilterIterator, org.jdom2.DescendantIterator
Type Parameters
<T>
The generic type of the values returned by this interface
Imports
java.util.Iterator

An interface that represents both a java.util.Iterator and a java.lang.Iterable.

JDOM 1.x has a number of methods that return an Iterator. These methods would (in some conditions) be better represented as an Iterable. To maintain compatibility, and to extend the functionality of these methods in JDOM2, they have been altered to return an instance of this interface.

Author
Rolf Lear

Method Summary

Inherited from java.lang.Iterable:
forEachiteratorspliterator
Inherited from java.util.Iterator:
forEachRemaininghasNextnextremove