Class Pause.Run<T>

  • Type Parameters:
    T - type.
    Enclosing class:
    Pause<T>

    public static final class Pause.Run<T>
    extends Object
    This class is responsible for executing the operations base on the set time interpreted to the requested unit.
    • Method Detail

      • thenRun

        @Contract("_ -> new")
        @NotNull
        public @NotNull Pause.Run.Delay<T> thenRun​(Executable executable)
        This method chains a Executable expression that execute after the pause.
        Parameters:
        executable - this method takes an expressions Executable that has no return value.
        Returns:
        an instance of Pause.Run.Delay for further operations.
      • thenRun

        @Contract("_ -> new")
        @NotNull
        public @NotNull Pause.Run.Delay<T> thenRun​(Dealer<T> dealer)
        This method chains a Dealer expression that execute after the pause.
        Parameters:
        dealer - this method takes an expressions Dealer that has a return value.
        Returns:
        an instance of Pause.Run.Delay operations.
      • empty

        @Contract(" -> new")
        @NotNull
        public @NotNull Pause.Run.Delay<T> empty()
        This is empty, if you don't intend to chain any expression
        Returns:
        an instance of Pause.Run.Delay operations.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        @Contract(value="null -> false",
                  pure=true)
        public boolean equals​(Object o)
        Overrides:
        equals in class Object