Rabbit-R1/android (non root)/java/sources/androidx/work/WorkContinuation.java
2024-05-21 17:08:36 -04:00

27 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);
}
}