alexandroid/decompiled/jadx/sources/io/reactivex/rxjava3/internal/disposables/EmptyDisposable.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

89 lines
2.7 KiB
Java

package io.reactivex.rxjava3.internal.disposables;
import io.reactivex.rxjava3.annotations.Nullable;
import io.reactivex.rxjava3.core.CompletableObserver;
import io.reactivex.rxjava3.core.MaybeObserver;
import io.reactivex.rxjava3.core.Observer;
import io.reactivex.rxjava3.core.SingleObserver;
import io.reactivex.rxjava3.operators.QueueDisposable;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes10.dex */
public enum EmptyDisposable implements QueueDisposable<Object> {
INSTANCE,
NEVER;
public static void complete(Observer<?> observer) {
observer.onSubscribe(INSTANCE);
observer.onComplete();
}
public static void error(Throwable th, Observer<?> observer) {
observer.onSubscribe(INSTANCE);
observer.onError(th);
}
@Override // io.reactivex.rxjava3.disposables.Disposable
public boolean isDisposed() {
return this == INSTANCE;
}
@Override // io.reactivex.rxjava3.operators.SimpleQueue
public boolean isEmpty() {
return true;
}
@Override // io.reactivex.rxjava3.operators.SimpleQueue
public boolean offer(Object obj) {
throw new UnsupportedOperationException("Should not be called!");
}
@Override // io.reactivex.rxjava3.operators.SimpleQueue
@Nullable
public Object poll() {
return null;
}
@Override // io.reactivex.rxjava3.operators.QueueFuseable
public int requestFusion(int i) {
return i & 2;
}
@Override // io.reactivex.rxjava3.operators.SimpleQueue
public boolean offer(Object obj, Object obj2) {
throw new UnsupportedOperationException("Should not be called!");
}
public static void complete(MaybeObserver<?> maybeObserver) {
maybeObserver.onSubscribe(INSTANCE);
maybeObserver.onComplete();
}
public static void error(Throwable th, CompletableObserver completableObserver) {
completableObserver.onSubscribe(INSTANCE);
completableObserver.onError(th);
}
public static void complete(CompletableObserver completableObserver) {
completableObserver.onSubscribe(INSTANCE);
completableObserver.onComplete();
}
public static void error(Throwable th, SingleObserver<?> singleObserver) {
singleObserver.onSubscribe(INSTANCE);
singleObserver.onError(th);
}
public static void error(Throwable th, MaybeObserver<?> maybeObserver) {
maybeObserver.onSubscribe(INSTANCE);
maybeObserver.onError(th);
}
@Override // io.reactivex.rxjava3.operators.SimpleQueue
public void clear() {
}
@Override // io.reactivex.rxjava3.disposables.Disposable
public void dispose() {
}
}