Class InputProvider<T>

  • Direct Known Subclasses:
    CollectionInputProvider, TextLineInputProvider

    public abstract class InputProvider<T>
    extends java.lang.Object
    A provider that provides generic input from a generic source as an iterator that can be read over and over again.
    Author:
    thomas.jungblut
    • Constructor Summary

      Constructors 
      Constructor Description
      InputProvider()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract 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

      • InputProvider

        public InputProvider()
    • Method Detail

      • iterate

        public abstract java.lang.Iterable<T> iterate()
        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.