Created
August 19, 2018 10:05
-
-
Save anitaa1990/13d3de8b0b0082d691d903e43f5a4dd5 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.just(0, 1, 2, 3, 4, 0, 6, 0) | |
.all(item -> item > 0) | |
.subscribe(new SingleObserver<Boolean>() { | |
@Override | |
public void onSubscribe(Disposable d) { | |
} | |
@Override | |
public void onSuccess(Boolean aBoolean) { | |
System.out.println("onNext: " + 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