36 lines
1 KiB
Java
36 lines
1 KiB
Java
package androidx.work;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.lifecycle.LiveData;
|
|
import c.i.b.d.a.a;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
public abstract class WorkContinuation {
|
|
@NonNull
|
|
public static WorkContinuation combine(@NonNull List<WorkContinuation> list) {
|
|
return list.get(0).combineInternal(list);
|
|
}
|
|
|
|
@NonNull
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
public abstract WorkContinuation combineInternal(@NonNull List<WorkContinuation> list);
|
|
|
|
@NonNull
|
|
public abstract Operation enqueue();
|
|
|
|
@NonNull
|
|
public abstract a<List<WorkInfo>> getWorkInfos();
|
|
|
|
@NonNull
|
|
public abstract LiveData<List<WorkInfo>> getWorkInfosLiveData();
|
|
|
|
@NonNull
|
|
public final WorkContinuation then(@NonNull OneTimeWorkRequest oneTimeWorkRequest) {
|
|
return then(Collections.singletonList(oneTimeWorkRequest));
|
|
}
|
|
|
|
@NonNull
|
|
public abstract WorkContinuation then(@NonNull List<OneTimeWorkRequest> list);
|
|
}
|