Class ModuloLineToString

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

    public class ModuloLineToString
    extends java.lang.Object
    implements java.util.function.LongFunction<java.lang.String>
    Select a value from a text file line by modulo division against the number of lines in the file.
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuloLineToString​(java.lang.String filename)  
    • Method Summary

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

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

      • ModuloLineToString

        public ModuloLineToString​(java.lang.String filename)
    • Method Detail

      • apply

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object