Package org.wikidata.wdtk.util
Class NestedIterator<T>
java.lang.Object
org.wikidata.wdtk.util.NestedIterator<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Iterator<T>
Given an iterable of iterables of T, this class simulates an iterator of T.
For example, it can be used to iterate over every element in a list of lists
of T.
This implementation does not support the removal of elements.
- Author:
- Markus Kroetzsch
-
Constructor Summary
ConstructorDescriptionNestedIterator
(Iterable<? extends Iterable<T>> iterableOfIterables) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
NestedIterator
Constructor.- Parameters:
iterableOfIterables
- the nested iterable to iterate over
-
-
Method Details