Class DirectoryLines

  • All Implemented Interfaces:
    java.util.function.LongFunction<java.lang.String>

    public class DirectoryLines
    extends java.lang.Object
    implements java.util.function.LongFunction<java.lang.String>
    Read each line in each matching file in a directory structure, providing one line for each time this function is called. The files are sorted at the time the function is initialized, and each line is read in order. This function does not produce the same result per cycle value. It is possible that different cycle inputs will return different inputs if the cycles are not applied in strict order. Still, this function is useful for consuming input from a set of files as input to a test or simulation.
    • Constructor Summary

      Constructors 
      Constructor Description
      DirectoryLines​(java.lang.String basepath, java.lang.String namePattern)  
    • Method Summary

      Modifier and Type Method Description
      java.lang.String apply​(long value)  
      • Methods inherited from class java.lang.Object

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

      • DirectoryLines

        public DirectoryLines​(java.lang.String basepath,
                              java.lang.String namePattern)
    • Method Detail

      • apply

        public java.lang.String apply​(long value)
        Specified by:
        apply in interface java.util.function.LongFunction<java.lang.String>