Package art.cutils.value
Class Pause.Run<T>
- java.lang.Object
-
- art.cutils.value.Pause.Run<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Pause.Run.Delay<T>
This class executes the delay and causes the pause before the set operations executed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Pause.Run.Delay<T>
empty()
This is empty, if you don't intend to chain any expressionboolean
equals(Object o)
int
hashCode()
@NotNull Pause.Run.Delay<T>
thenRun(Dealer<T> dealer)
This method chains aDealer
expression that execute after the pause.@NotNull Pause.Run.Delay<T>
thenRun(Executable executable)
This method chains aExecutable
expression that execute after the pause.
-
-
-
Method Detail
-
thenRun
@Contract("_ -> new") @NotNull public @NotNull Pause.Run.Delay<T> thenRun(Executable executable)
This method chains aExecutable
expression that execute after the pause.- Parameters:
executable
- this method takes an expressionsExecutable
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 aDealer
expression that execute after the pause.- Parameters:
dealer
- this method takes an expressionsDealer
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.
-
-