Skip to content

Instantly share code, notes, and snippets.

@anitaa1990
Created August 19, 2018 10:05
Show Gist options
  • Save anitaa1990/13d3de8b0b0082d691d903e43f5a4dd5 to your computer and use it in GitHub Desktop.
Save anitaa1990/13d3de8b0b0082d691d903e43f5a4dd5 to your computer and use it in GitHub Desktop.
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