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>
public class NestedIterator<T> extends Object implements 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
Constructors Constructor Description NestedIterator(Iterable<? extends Iterable<T>> iterableOfIterables)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()voidremove()-
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
-
-