Class Functions.TimestampFunction<T>

  • All Implemented Interfaces:
    Function<T,​Timed<T>>
    Enclosing class:
    Functions

    static final class Functions.TimestampFunction<T>
    extends java.lang.Object
    implements Function<T,​Timed<T>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Scheduler scheduler  
      (package private) java.util.concurrent.TimeUnit unit  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimestampFunction​(java.util.concurrent.TimeUnit unit, Scheduler scheduler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Timed<T> apply​(T t)
      Apply some calculation to the input value and return some other value.
      • Methods inherited from class java.lang.Object

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

      • unit

        final java.util.concurrent.TimeUnit unit
    • Constructor Detail

      • TimestampFunction

        TimestampFunction​(java.util.concurrent.TimeUnit unit,
                          Scheduler scheduler)
    • Method Detail

      • apply

        public Timed<T> apply​(T t)
        Description copied from interface: Function
        Apply some calculation to the input value and return some other value.
        Specified by:
        apply in interface Function<T,​Timed<T>>
        Parameters:
        t - the input value
        Returns:
        the output value