Class LinearTimingFunction

  • All Implemented Interfaces:
    com.google.common.base.Function<java.lang.Long,​java.lang.Long>, java.util.function.Function<java.lang.Long,​java.lang.Long>

    public class LinearTimingFunction
    extends java.lang.Object
    implements com.google.common.base.Function<java.lang.Long,​java.lang.Long>
    Speeds up timings by a constant factor.
    Author:
    https://github.com/lbovet [Laurent Bovet]
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long apply​(java.lang.Long millis)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Function

        equals
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • LinearTimingFunction

        public LinearTimingFunction​(double factor)
    • Method Detail

      • apply

        public java.lang.Long apply​(java.lang.Long millis)
        Specified by:
        apply in interface com.google.common.base.Function<java.lang.Long,​java.lang.Long>
        Specified by:
        apply in interface java.util.function.Function<java.lang.Long,​java.lang.Long>