Package pro.horde.os.cutils.value
Class Pause.Run<T>
- java.lang.Object
-
- pro.horde.os.cutils.value.Pause.Run<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPause.Run.Delay<T>This class execute the delay and cause the pause before the set operations executed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pause.Run.Delay<T>empty()This is empty, if you don't intend to chain any expressionbooleanequals(Object o)inthashCode()Pause.Run.Delay<T>thenRun(Dealer<T> dealer)This method chains aDealerexpression that execute after the pause.Pause.Run.Delay<T>thenRun(Executable executable)This method chains aExecutableexpression that execute after the pause.
-
-
-
Method Detail
-
thenRun
public Pause.Run.Delay<T> thenRun(Executable executable)
This method chains aExecutableexpression that execute after the pause.- Parameters:
executable- this method take an expressionsExecutablethat has no return value.- Returns:
- an instance of
Pause.Run.Delayfor further operations.
-
thenRun
public Pause.Run.Delay<T> thenRun(Dealer<T> dealer)
This method chains aDealerexpression that execute after the pause.- Parameters:
dealer- this method take an expressionsDealerthat has a return value.- Returns:
- an instance of
Pause.Run.Delayoperations.
-
empty
public Pause.Run.Delay<T> empty()
This is empty, if you don't intend to chain any expression- Returns:
- an instance of
Pause.Run.Delayoperations.
-
-