Class OperatorSequenceEqual


  • public final class OperatorSequenceEqual
    extends java.lang.Object
    Returns an Observable that emits a single Boolean value that indicates whether two source Observables emit sequences of items that are equivalent to each other.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.Object LOCAL_ONCOMPLETED
      NotificationLite doesn't work as zip uses it.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static <T> Observable<java.lang.Object> materializeLite​(Observable<T> source)  
      static <T> Observable<java.lang.Boolean> sequenceEqual​(Observable<? extends T> first, Observable<? extends T> second, Func2<? super T,​? super T,​java.lang.Boolean> equality)
      Tests whether two Observable sequences are identical, emitting true if both sequences complete without differing, and false if the two sequences diverge at any point.
      • Methods inherited from class java.lang.Object

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

      • LOCAL_ONCOMPLETED

        static final java.lang.Object LOCAL_ONCOMPLETED
        NotificationLite doesn't work as zip uses it.
    • Constructor Detail

      • OperatorSequenceEqual

        private OperatorSequenceEqual()
    • Method Detail

      • materializeLite

        static <T> Observable<java.lang.Object> materializeLite​(Observable<T> source)
      • sequenceEqual

        public static <T> Observable<java.lang.Boolean> sequenceEqual​(Observable<? extends T> first,
                                                                      Observable<? extends T> second,
                                                                      Func2<? super T,​? super T,​java.lang.Boolean> equality)
        Tests whether two Observable sequences are identical, emitting true if both sequences complete without differing, and false if the two sequences diverge at any point.
        Type Parameters:
        T - the value type
        Parameters:
        first - the first of the two Observables to compare
        second - the second of the two Observables to compare
        equality - a function that tests emissions from each Observable for equality
        Returns:
        an Observable that emits true if first and second complete after emitting equal sequences of items, false if at any point in their sequences the two Observables emit a non-equal item.