mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 09:57:16 +01:00
65 lines
1.8 KiB
Java
65 lines
1.8 KiB
Java
package io.reactivex.rxjava3.internal.subscriptions;
|
|
|
|
import io.reactivex.rxjava3.annotations.Nullable;
|
|
import io.reactivex.rxjava3.operators.QueueSubscription;
|
|
import org.reactivestreams.Subscriber;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes10.dex */
|
|
public enum EmptySubscription implements QueueSubscription<Object> {
|
|
INSTANCE;
|
|
|
|
public static void complete(Subscriber<?> subscriber) {
|
|
subscriber.onSubscribe(INSTANCE);
|
|
subscriber.onComplete();
|
|
}
|
|
|
|
public static void error(Throwable th, Subscriber<?> subscriber) {
|
|
subscriber.onSubscribe(INSTANCE);
|
|
subscriber.onError(th);
|
|
}
|
|
|
|
@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 // org.reactivestreams.Subscription
|
|
public void request(long j) {
|
|
SubscriptionHelper.validate(j);
|
|
}
|
|
|
|
@Override // io.reactivex.rxjava3.operators.QueueFuseable
|
|
public int requestFusion(int i) {
|
|
return i & 2;
|
|
}
|
|
|
|
@Override // java.lang.Enum
|
|
public String toString() {
|
|
return "EmptySubscription";
|
|
}
|
|
|
|
@Override // io.reactivex.rxjava3.operators.SimpleQueue
|
|
public boolean offer(Object obj, Object obj2) {
|
|
throw new UnsupportedOperationException("Should not be called!");
|
|
}
|
|
|
|
@Override // org.reactivestreams.Subscription
|
|
public void cancel() {
|
|
}
|
|
|
|
@Override // io.reactivex.rxjava3.operators.SimpleQueue
|
|
public void clear() {
|
|
}
|
|
}
|