Package net.sf.saxon.tree.jiter
Class IterableUsingIteratorSupplier<T>
java.lang.Object
net.sf.saxon.tree.jiter.IterableUsingIteratorSupplier<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Iterable<T>
Implements an iterable over a
Supplier<Iterator<T>> -- if a class can
supply iterators on demand, then it can implement Iterable-
Constructor Summary
ConstructorsConstructorDescriptionIterableUsingIteratorSupplier(Supplier<Iterator<T>> iteratorSupplier) Create an iterable, whoseiterator()method will get an iterator from the supplier provided. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IterableUsingIteratorSupplier
Create an iterable, whoseiterator()method will get an iterator from the supplier provided.- Parameters:
iteratorSupplier- the supplier of iterators, to be called whenever a new iterator is required
-
-
Method Details