public final class OperatorSequenceEqual
extends java.lang.Object
Observable
that emits a single Boolean
value that indicates whether two source
Observable
s emit sequences of items that are equivalent to each other.Modifier and Type | Method and Description |
---|---|
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. |
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)
Observable
sequences are identical, emitting true
if both sequences
complete without differing, and false
if the two sequences diverge at any point.first
- the first of the two Observable
s to comparesecond
- the second of the two Observable
s to compareequality
- a function that tests emissions from each Observable
for equalityObservable
that emits true
if first
and second
complete
after emitting equal sequences of items, false
if at any point in their sequences the
two Observable
s emit a non-equal item.