Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package io.reactivex.disposables;
import io.reactivex.internal.functions.ObjectHelper;
import java.util.concurrent.atomic.AtomicReference;
/* loaded from: classes2.dex */
abstract class ReferenceDisposable<T> extends AtomicReference<T> implements Disposable {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ReferenceDisposable(T t) {
super(t);
ObjectHelper.a((Object) t, "value is null");
}
protected abstract void a(T t);
public final boolean a() {
return get() == null;
}
@Override // io.reactivex.disposables.Disposable
public final void dispose() {
T andSet;
if (get() == null || (andSet = getAndSet(null)) == null) {
return;
}
a(andSet);
}
}