package o; import java.util.Objects; import java.util.concurrent.atomic.AtomicReference; /* loaded from: classes6.dex */ abstract class fSH extends AtomicReference implements fSJ { protected abstract void a(T t); /* JADX INFO: Access modifiers changed from: package-private */ public fSH(T t) { super(Objects.requireNonNull(t, "value is null")); } @Override // o.fSJ public final void dispose() { T andSet; if (get() == null || (andSet = getAndSet(null)) == null) { return; } a(andSet); } @Override // o.fSJ public final boolean isDisposed() { return get() == null; } }