mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 18:12:31 -06:00
28 lines
885 B
Java
28 lines
885 B
Java
|
package androidx.work;
|
||
|
|
||
|
import androidx.lifecycle.LiveData;
|
||
|
import com.google.common.util.concurrent.ListenableFuture;
|
||
|
import java.util.Collections;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public abstract class WorkContinuation {
|
||
|
protected abstract WorkContinuation combineInternal(List<WorkContinuation> continuations);
|
||
|
|
||
|
public abstract Operation enqueue();
|
||
|
|
||
|
public abstract ListenableFuture<List<WorkInfo>> getWorkInfos();
|
||
|
|
||
|
public abstract LiveData<List<WorkInfo>> getWorkInfosLiveData();
|
||
|
|
||
|
public abstract WorkContinuation then(List<OneTimeWorkRequest> work);
|
||
|
|
||
|
public final WorkContinuation then(OneTimeWorkRequest work) {
|
||
|
return then(Collections.singletonList(work));
|
||
|
}
|
||
|
|
||
|
public static WorkContinuation combine(List<WorkContinuation> continuations) {
|
||
|
return continuations.get(0).combineInternal(continuations);
|
||
|
}
|
||
|
}
|