A - タスクの引数の型R - タスクの結果の型public abstract class InstallTask<A extends TaskArgument,R extends TaskResult<? extends Enum<?>,? extends Enum<?>>> extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
InstallTask.ThrowingRunnable |
protected static interface |
InstallTask.ThrowingSupplier<T> |
| Modifier and Type | Field and Description |
|---|---|
protected @NotNull InstallProgress<?,?> |
progress
インストールごとに生成される、インストール進捗状況です。
|
| Constructor and Description |
|---|
InstallTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
postSignal(@NotNull Signal signal) |
protected void |
runSync(@NotNull Runnable runnable) |
protected <T> T |
runSync(@NotNull Supplier<T> supplier) |
protected void |
runSyncThrowing(@NotNull InstallTask.ThrowingRunnable runnable) |
protected <T> T |
runSyncThrowing(@NotNull InstallTask.ThrowingSupplier<T> supplier) |
abstract R |
runTask(A arguments)
タスクを実行します。
|
@NotNull protected final @NotNull InstallProgress<?,?> progress
@NotNull public abstract R runTask(@NotNull A arguments)
arguments - タスクの引数です。protected void postSignal(@NotNull
@NotNull Signal signal)
protected void runSyncThrowing(@NotNull
@NotNull InstallTask.ThrowingRunnable runnable)
throws Exception
Exceptionprotected <T> T runSyncThrowing(@NotNull
@NotNull InstallTask.ThrowingSupplier<T> supplier)
throws Exception
Exceptionprotected void runSync(@NotNull
@NotNull Runnable runnable)
protected <T> T runSync(@NotNull
@NotNull Supplier<T> supplier)
Copyright © 2023. All rights reserved.