Skip to content

2.x: start reimplementing Maybe with up-to-date javadoc, tests and algo #4454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 1, 2016

Conversation

akarnokd
Copy link
Member

@akarnokd akarnokd commented Sep 1, 2016

This PR reimplements the Maybe with more up-to-date algorithms (the original was a copy-paste of some older Single and Completable code it seems) and adds javadoc and tests along the way. Not all operators have been rewritten yet (and no placeholders). Early adopters should refer to the toX methods on the base reactive types. The PR also adds the RxJavaPlugins hooks to support Maybe.

In addition, I've fixed javadoc mistakes in the other base reactive types (referring to the wrong types).

@codecov-io
Copy link

codecov-io commented Sep 1, 2016

Current coverage is 75.96% (diff: 77.49%)

Merging #4454 into 2.x will increase coverage by 3.26%

@@                2.x      #4454   diff @@
==========================================
  Files           499        485     -14   
  Lines         33620      33041    -579   
  Methods           0          0           
  Messages          0          0           
  Branches       5269       5240     -29   
==========================================
+ Hits          24439      25098    +659   
+ Misses         7181       5907   -1274   
- Partials       2000       2036     +36   

Powered by Codecov. Last update b8a3320...cebbe6d


/**
* Returns a {@link Maybe} that invokes passed function and emits its result for each new MaybeObserver that subscribes
* while considering {@code null} value from the callable as indication for valueless completion.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@JakeWharton
Copy link
Contributor

👍

@akarnokd
Copy link
Member Author

akarnokd commented Sep 1, 2016

Thanks @JakeWharton !

@akarnokd akarnokd merged commit 52dc050 into ReactiveX:2.x Sep 1, 2016
@akarnokd akarnokd deleted the Cleanup901_1 branch September 1, 2016 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants