Module org.autogui
Package org.autogui.swing
Class GuiSwingTaskRunner.ContextTaskResultFail<RetType>
java.lang.Object
org.autogui.swing.GuiSwingTaskRunner.ContextTaskResult<RetType>
org.autogui.swing.GuiSwingTaskRunner.ContextTaskResultFail<RetType>
- Type Parameters:
RetType- the type of the value
- Enclosing class:
GuiSwingTaskRunner
public static class GuiSwingTaskRunner.ContextTaskResultFail<RetType>
extends GuiSwingTaskRunner.ContextTaskResult<RetType>
a task failure by delay
-
Field Summary
FieldsFields inherited from class org.autogui.swing.GuiSwingTaskRunner.ContextTaskResult
value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteIfPresent(Consumer<RetType> task) the value is null and thus the method does nothinggetValueOr(RetType cancelValue, RetType timeoutValue) booleanisCancel()booleanMethods inherited from class org.autogui.swing.GuiSwingTaskRunner.ContextTaskResult
executeIfPresentWithDelay, getValue, isError, isPresented, isPresentedWithDelay, toString
-
Field Details
-
timeout
protected boolean timeout
-
-
Constructor Details
-
ContextTaskResultFail
public ContextTaskResultFail(boolean timeout)
-
-
Method Details
-
isCancel
public boolean isCancel()- Overrides:
isCancelin classGuiSwingTaskRunner.ContextTaskResult<RetType>
-
isTimeout
public boolean isTimeout()- Overrides:
isTimeoutin classGuiSwingTaskRunner.ContextTaskResult<RetType>
-
executeIfPresent
the value is null and thus the method does nothing- Overrides:
executeIfPresentin classGuiSwingTaskRunner.ContextTaskResult<RetType>- Parameters:
task- to be executed with the value
-
getValueOr
- Overrides:
getValueOrin classGuiSwingTaskRunner.ContextTaskResult<RetType>- Parameters:
cancelValue- the value for cancellationtimeoutValue- the value for timeout- Returns:
- cancelValue or timeoutValue
-