Last active
March 2, 2016 18:46
-
-
Save murki/c142e28dbc2c7488a391 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
// We assume the repositories getData() methods will return null if no data is available | |
// DomainService.java | |
@RxLogObservable | |
public Observable<Data> getData() { | |
return getMergedData() | |
.filter( | |
new Func1<Data, Boolean>() { | |
@Override | |
public Boolean call(Data data) { | |
return data != null; | |
} | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment