Class Clock.AfterExecutor

  • All Implemented Interfaces:

    
    public final class Clock.AfterExecutor
    extends Clock.Executor
                        

    An executor that will do its function after the given amount of time has passed.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean getFinished()
      Boolean tick(Long deltaTimeNanos) Update this Executor, and execute it if the given amount of time has passed.
      • Methods inherited from class org.polyfrost.polyui.utils.Clock.Executor

        getExecuteEveryNanos
      • Methods inherited from class java.lang.Object

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

      • Clock.AfterExecutor

        Clock.AfterExecutor(Long timeNanos, Function0<Unit> func)