Module io.virtdata.lib.basics
Class DirectoryLines
- java.lang.Object
-
- io.virtdata.libbasics.shared.from_long.to_string.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.Stringapply(long value)
-