Created
August 19, 2018 10:18
-
-
Save anitaa1990/d95bfd5b5e6911c67384d233f9277251 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(1, 2, 3, 4, 5, 6) | |
.contains(10) | |
.subscribe(new SingleObserver<Boolean>() { | |
@Override | |
public void onSubscribe(Disposable d) { | |
} | |
@Override | |
public void onSuccess(Boolean aBoolean) { | |
System.out.println("Does list contain value 10: " + 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