Created
August 19, 2018 10:32
-
-
Save anitaa1990/446350dea0e6c19a1e0fc461ddeed2d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Observable<Integer> observable1 = Observable | |
.just(1, 2, 3, 4, 5, 6); | |
Observable<Integer> observable2 = Observable | |
.just(1, 2, 3, 4, 5, 6); | |
Observable.sequenceEqual(observable1, observable2) | |
.subscribe(new SingleObserver<Boolean>() { | |
@Override | |
public void onSubscribe(Disposable d) { | |
} | |
@Override | |
public void onSuccess(Boolean aBoolean) { | |
System.out.println("Are the two sequences equal: " + aBoolean); | |
} | |
@Override | |
public void onError(Throwable e) { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment