Created
January 4, 2017 11:53
-
-
Save rohmanhakim/431ead29ba08712e488ae9172a3d9c98 to your computer and use it in GitHub Desktop.
This file contains hidden or 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<Boolean> invalidFieldsStream = Observable.combineLatest( | |
emailStream, | |
passwordStream, | |
passwordConfirmationStream, | |
emptyFieldStream, new Func4<Boolean, Boolean, Boolean, Boolean, Boolean>() { | |
@Override | |
public Boolean call(Boolean emailInvalid, Boolean passwordInvalid, Boolean passwordConfirmationInvalid, Boolean emptyFieldExist) { | |
return !emailInvalid && !passwordInvalid && !passwordConfirmationInvalid && !emptyFieldExist; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment