Top Description Fields Constructors Methods
rx.internal.operators

public final Class OperatorSequenceEqual

extends Object
Class Inheritance
Static Imports
rx.Observable.*

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

Modifier and TypeField and Description
pack-priv static final Object
LOCAL_ON_COMPLETED

NotificationLite doesn't work as zip uses it.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static <T> Observable<Object>
public static <
the value type
T
>
Observable<Boolean>

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.
sequenceEqual
(Observable<? extends T>
the first of the two Observables to compare
first
,
Observable<? extends T>
the second of the two Observables to compare
second
,
final Func2<? super T, ? super T, Boolean>
a function that tests emissions from each Observable for equality
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOCAL_ON_COMPLETEDback to summary
pack-priv static final Object LOCAL_ON_COMPLETED

NotificationLite doesn't work as zip uses it.

Constructor Detail

OperatorSequenceEqualback to summary
private OperatorSequenceEqual()

Method Detail

materializeLiteback to summary
pack-priv static <T> Observable<Object> materializeLite(Observable<T> source)
sequenceEqualback to summary
public static <T> Observable<Boolean> sequenceEqual(Observable<? extends T> first, Observable<? extends T> second, final Func2<? super T, ? super T, 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.

Parameters
<T>
the value type
first:Observable<? extends T>

the first of the two Observables to compare

second:Observable<? extends T>

the second of the two Observables to compare

equality:Func2<? super T, ? super T, Boolean>

a function that tests emissions from each Observable for equality

Returns:Observable<Boolean>

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.