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 TypeMethodDescriptionbooleanhasNext()next()voidNotifies theObserverthat theObservablehas finished sending push-based notifications.voidNotifies theObserverthat theObservablehas experienced an error condition.voidonNext(Notification<T> args) Provides theObserverwith a new item to observe.voidremove()Methods inherited from class DisposableObserver
dispose, isDisposed, onStart, onSubscribeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
iteratorNotification
Notification<T> iteratorNotification -
notify
-
value
-
-
Constructor Details
-
BlockingObservableLatestIterator
BlockingObservableLatestIterator()
-
-
Method Details
-
onNext
Description copied from interface:ObserverProvides theObserverwith a new item to observe.The
Observablemay call this method 0 or more times.The
Observablewill not call this method again after it calls eitherObserver.onComplete()orObserver.onError(Throwable). -
onError
Description copied from interface:ObserverNotifies theObserverthat theObservablehas experienced an error condition.If the
Observablecalls this method, it will not thereafter callObserver.onNext(T)orObserver.onComplete(). -
onComplete
public void onComplete()Description copied from interface:ObserverNotifies theObserverthat theObservablehas finished sending push-based notifications.The
Observablewill not call this method if it callsObserver.onError(Throwable).- Specified by:
onCompletein interfaceObserver<T>
-
hasNext
-
next
-
remove
-