Class BlockingObservableLatest.BlockingObservableLatestIterator<T>
java.lang.Object
io.reactivex.rxjava3.observers.DisposableObserver<Notification<T>>
io.reactivex.rxjava3.internal.operators.observable.BlockingObservableLatest.BlockingObservableLatestIterator<T>
- All Implemented Interfaces:
Observer<Notification<T>>
,Disposable
,Iterator<T>
- Enclosing class:
BlockingObservableLatest<T>
static final class BlockingObservableLatest.BlockingObservableLatestIterator<T>
extends DisposableObserver<Notification<T>>
implements Iterator<T>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Notification
<T> (package private) final Semaphore
(package private) final AtomicReference
<Notification<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
next()
void
Notifies theObserver
that theObservable
has finished sending push-based notifications.void
Notifies theObserver
that theObservable
has experienced an error condition.void
onNext
(Notification<T> args) Provides theObserver
with a new item to observe.void
remove()
Methods inherited from class io.reactivex.rxjava3.observers.DisposableObserver
dispose, isDisposed, onStart, onSubscribe
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
iteratorNotification
Notification<T> iteratorNotification -
notify
-
value
-
-
Constructor Details
-
BlockingObservableLatestIterator
BlockingObservableLatestIterator()
-
-
Method Details
-
onNext
Description copied from interface:Observer
Provides theObserver
with a new item to observe.The
Observable
may call this method 0 or more times.The
Observable
will not call this method again after it calls eitherObserver.onComplete()
orObserver.onError(java.lang.Throwable)
. -
onError
Description copied from interface:Observer
Notifies theObserver
that theObservable
has experienced an error condition.If the
Observable
calls this method, it will not thereafter callObserver.onNext(T)
orObserver.onComplete()
. -
onComplete
public void onComplete()Description copied from interface:Observer
Notifies theObserver
that theObservable
has finished sending push-based notifications.The
Observable
will not call this method if it callsObserver.onError(java.lang.Throwable)
.- Specified by:
onComplete
in interfaceObserver<T>
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-