Module is.codion.swing.common.model
Interface ProgressWorker.BuilderFactory
- Enclosing class:
ProgressWorker<T,V>
public static sealed interface ProgressWorker.BuilderFactory
Provides builders for a given task type.
-
Method Summary
Modifier and TypeMethodDescription<T,V> ProgressWorker.Builder <T, V> task(ProgressWorker.ProgressResultTask<T, V> task) <V> ProgressWorker.Builder<?, V> task(ProgressWorker.ProgressTask<V> task) <T> ProgressWorker.Builder<T, ?> task(ProgressWorker.ResultTask<T> task) task(ProgressWorker.Task task)
-
Method Details
-
task
- Parameters:
task- the task to run- Returns:
- a new
ProgressWorker.Builderinstance
-
task
- Type Parameters:
T- the worker result typee- Parameters:
task- the task to run- Returns:
- a new
ProgressWorker.Builderinstance
-
task
- Type Parameters:
V- the intermediate result type- Parameters:
task- the task to run- Returns:
- a new
ProgressWorker.Builderinstance
-
task
- Type Parameters:
T- the worker result typeV- the intermediate result type- Parameters:
task- the task to run- Returns:
- a new
ProgressWorker.Builderinstance
-