68 lines
1.7 KiB
Java
68 lines
1.7 KiB
Java
package io.reactivex.internal.util;
|
|
|
|
import io.reactivex.CompletableObserver;
|
|
import io.reactivex.FlowableSubscriber;
|
|
import io.reactivex.MaybeObserver;
|
|
import io.reactivex.Observer;
|
|
import io.reactivex.SingleObserver;
|
|
import io.reactivex.disposables.Disposable;
|
|
import io.reactivex.plugins.RxJavaPlugins;
|
|
import org.reactivestreams.Subscriber;
|
|
import org.reactivestreams.Subscription;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public enum EmptyComponent implements FlowableSubscriber<Object>, Observer<Object>, MaybeObserver<Object>, SingleObserver<Object>, CompletableObserver, Subscription, Disposable {
|
|
INSTANCE;
|
|
|
|
public static <T> Observer<T> asObserver() {
|
|
return INSTANCE;
|
|
}
|
|
|
|
public static <T> Subscriber<T> asSubscriber() {
|
|
return INSTANCE;
|
|
}
|
|
|
|
@Override // org.reactivestreams.Subscription
|
|
public void cancel() {
|
|
}
|
|
|
|
@Override // io.reactivex.disposables.Disposable
|
|
public void dispose() {
|
|
}
|
|
|
|
public boolean isDisposed() {
|
|
return true;
|
|
}
|
|
|
|
@Override // org.reactivestreams.Subscriber
|
|
public void onComplete() {
|
|
}
|
|
|
|
@Override // org.reactivestreams.Subscriber
|
|
public void onError(Throwable th) {
|
|
RxJavaPlugins.b(th);
|
|
}
|
|
|
|
@Override // org.reactivestreams.Subscriber
|
|
public void onNext(Object obj) {
|
|
}
|
|
|
|
@Override // io.reactivex.Observer
|
|
public void onSubscribe(Disposable disposable) {
|
|
disposable.dispose();
|
|
}
|
|
|
|
@Override // io.reactivex.MaybeObserver
|
|
public void onSuccess(Object obj) {
|
|
}
|
|
|
|
@Override // org.reactivestreams.Subscription
|
|
public void request(long j) {
|
|
}
|
|
|
|
@Override // org.reactivestreams.Subscriber
|
|
public void onSubscribe(Subscription subscription) {
|
|
subscription.cancel();
|
|
}
|
|
}
|