Package de.jungblut.datastructure
Class CollectionInputProvider<T>
- java.lang.Object
-
- de.jungblut.datastructure.InputProvider<T>
-
- de.jungblut.datastructure.CollectionInputProvider<T>
-
public class CollectionInputProvider<T> extends InputProvider<T>
Provider for generic collections to read.- Author:
- thomas.jungblut
-
-
Constructor Summary
Constructors Constructor Description CollectionInputProvider(java.util.Collection<T> col)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<T>iterate()
-
-
-
Constructor Detail
-
CollectionInputProvider
public CollectionInputProvider(java.util.Collection<T> col)
-
-
Method Detail
-
iterate
public java.lang.Iterable<T> iterate()
- Specified by:
iteratein classInputProvider<T>- Returns:
- a new iterator to read something. If end of data has been reached, it can be called to obtain a new iterable that re-reads that data.
-
-