Class FlowableSequenceEqualSingle.EqualCoordinator<T>
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.AtomicInteger
-
- io.reactivex.rxjava3.internal.operators.flowable.FlowableSequenceEqualSingle.EqualCoordinator<T>
-
- All Implemented Interfaces:
Disposable
,FlowableSequenceEqual.EqualCoordinatorHelper
,java.io.Serializable
- Enclosing class:
- FlowableSequenceEqualSingle<T>
static final class FlowableSequenceEqualSingle.EqualCoordinator<T> extends java.util.concurrent.atomic.AtomicInteger implements Disposable, FlowableSequenceEqual.EqualCoordinatorHelper
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BiPredicate<? super T,? super T>
comparer
(package private) SingleObserver<? super java.lang.Boolean>
downstream
(package private) AtomicThrowable
errors
(package private) FlowableSequenceEqual.EqualSubscriber<T>
first
(package private) FlowableSequenceEqual.EqualSubscriber<T>
second
private static long
serialVersionUID
(package private) T
v1
(package private) T
v2
-
Constructor Summary
Constructors Constructor Description EqualCoordinator(SingleObserver<? super java.lang.Boolean> actual, int prefetch, BiPredicate<? super T,? super T> comparer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
cancelAndClear()
void
dispose()
Dispose the resource, the operation should be idempotent.void
drain()
void
innerError(java.lang.Throwable t)
boolean
isDisposed()
Returns true if this resource has been disposed.(package private) void
subscribe(org.reactivestreams.Publisher<? extends T> source1, org.reactivestreams.Publisher<? extends T> source2)
-
Methods inherited from class java.util.concurrent.atomic.AtomicInteger
accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
downstream
final SingleObserver<? super java.lang.Boolean> downstream
-
comparer
final BiPredicate<? super T,? super T> comparer
-
first
final FlowableSequenceEqual.EqualSubscriber<T> first
-
second
final FlowableSequenceEqual.EqualSubscriber<T> second
-
errors
final AtomicThrowable errors
-
v1
T v1
-
v2
T v2
-
-
Constructor Detail
-
EqualCoordinator
EqualCoordinator(SingleObserver<? super java.lang.Boolean> actual, int prefetch, BiPredicate<? super T,? super T> comparer)
-
-
Method Detail
-
subscribe
void subscribe(org.reactivestreams.Publisher<? extends T> source1, org.reactivestreams.Publisher<? extends T> source2)
-
dispose
public void dispose()
Description copied from interface:Disposable
Dispose the resource, the operation should be idempotent.- Specified by:
dispose
in interfaceDisposable
-
isDisposed
public boolean isDisposed()
Description copied from interface:Disposable
Returns true if this resource has been disposed.- Specified by:
isDisposed
in interfaceDisposable
- Returns:
- true if this resource has been disposed
-
cancelAndClear
void cancelAndClear()
-
drain
public void drain()
- Specified by:
drain
in interfaceFlowableSequenceEqual.EqualCoordinatorHelper
-
innerError
public void innerError(java.lang.Throwable t)
- Specified by:
innerError
in interfaceFlowableSequenceEqual.EqualCoordinatorHelper
-
-