Files
rr3-apk/decompiled/sources/androidx/work/Operation.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

72 lines
1.7 KiB
Java

package androidx.work;
import androidx.annotation.NonNull;
import androidx.annotation.RestrictTo;
import androidx.lifecycle.LiveData;
import com.google.common.util.concurrent.ListenableFuture;
/* loaded from: classes.dex */
public interface Operation {
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final State.IN_PROGRESS IN_PROGRESS;
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final State.SUCCESS SUCCESS;
@NonNull
ListenableFuture getResult();
@NonNull
LiveData<State> getState();
static {
SUCCESS = new State.SUCCESS();
IN_PROGRESS = new State.IN_PROGRESS();
}
public static abstract class State {
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public State() {
}
public static final class SUCCESS extends State {
@NonNull
public String toString() {
return "SUCCESS";
}
private SUCCESS() {
}
}
public static final class IN_PROGRESS extends State {
@NonNull
public String toString() {
return "IN_PROGRESS";
}
private IN_PROGRESS() {
}
}
public static final class FAILURE extends State {
private final Throwable mThrowable;
@NonNull
public Throwable getThrowable() {
return this.mThrowable;
}
public FAILURE(@NonNull Throwable th) {
this.mThrowable = th;
}
@NonNull
public String toString() {
return "FAILURE (" + this.mThrowable.getMessage() + ")";
}
}
}
}