Class HashedLineToInt

  • All Implemented Interfaces:
    java.util.function.LongToIntFunction

    public class HashedLineToInt
    extends java.lang.Object
    implements java.util.function.LongToIntFunction
    Return a pseudo-randomly selected integer value from a file of numeric values. Each line in the file must contain one parsable integer value.
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int applyAsInt​(long value)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • HashedLineToInt

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

      • toString

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

        public int applyAsInt​(long value)
        Specified by:
        applyAsInt in interface java.util.function.LongToIntFunction