Class Clock.Executor

  • All Implemented Interfaces:

    
    public abstract class Clock.Executor
    
                        

    Create a new Executor.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Clock.Executor(Long executeEveryNanos, Function0<Unit> func)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean getFinished()
      final Long getExecuteEveryNanos()
      Boolean tick(Long deltaTimeNanos) Update this Executor, and execute it if the given amount of time has passed.
      • Methods inherited from class java.lang.Object

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

      • Clock.Executor

        Clock.Executor(Long executeEveryNanos, Function0<Unit> func)
        Parameters:
        executeEveryNanos - how often (in nanoseconds) to execute the given function.
        func - the function to execute after the given time.