Class CollectionInputProvider<T>


  • public class CollectionInputProvider<T>
    extends InputProvider<T>
    Provider for generic collections to read.
    Author:
    thomas.jungblut
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Iterable<T> iterate()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CollectionInputProvider

        public CollectionInputProvider​(java.util.Collection<T> col)
    • Method Detail

      • iterate

        public java.lang.Iterable<T> iterate()
        Specified by:
        iterate in class InputProvider<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.