Class OperatorWithLatestFrom<T,​U,​R>

  • Type Parameters:
    T - the element type of the main observable
    U - the element type of the other observable that is merged into the main
    R - the result element type
    All Implemented Interfaces:
    Func1<Subscriber<? super R>,​Subscriber<? super T>>, Function, Observable.Operator<R,​T>

    public final class OperatorWithLatestFrom<T,​U,​R>
    extends java.lang.Object
    implements Observable.Operator<R,​T>
    Combines values from two sources only when the main source emits.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.Object EMPTY
      Indicates the other has not yet emitted a value.
      (package private) Observable<? extends U> other  
      (package private) Func2<? super T,​? super U,​? extends R> resultSelector  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Subscriber<? super T> call​(Subscriber<? super R> child)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • resultSelector

        final Func2<? super T,​? super U,​? extends R> resultSelector
      • EMPTY

        static final java.lang.Object EMPTY
        Indicates the other has not yet emitted a value.
    • Constructor Detail

      • OperatorWithLatestFrom

        public OperatorWithLatestFrom​(Observable<? extends U> other,
                                      Func2<? super T,​? super U,​? extends R> resultSelector)