JDOM
2.0.2

org.jdom2.util
Interface IteratorIterable<T>

Type Parameters:
T - The generic type of the values returned by this interface
All Superinterfaces:
java.lang.Iterable<T>, java.util.Iterator<T>

public interface IteratorIterable<T>
extends java.lang.Iterable<T>, java.util.Iterator<T>

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
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 


JDOM
2.0.2

Copyright © 2012 Jason Hunter, Brett McLaughlin. All Rights Reserved.