Skip to content
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

Support io.reactivex.Maybe #857

Merged
merged 3 commits into from
Nov 27, 2017
Merged

Support io.reactivex.Maybe #857

merged 3 commits into from
Nov 27, 2017

Conversation

geralt-encore
Copy link
Collaborator

#846
#855

I've added Maybe support only to PreparedGetObject. After some thoughts, I came to a conclusion that it doesn't really make much sense to have it for other queries. Maybe is some kind of a reactive optional and in case of List, Cursor and NumberOfResults queries we always have a valid result for empty cases so I don't see any value in wrapping them into Maybe.

@codecov-io
Copy link

Codecov Report

Merging #857 into master will decrease coverage by 0.01%.
The diff coverage is 96%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #857      +/-   ##
============================================
- Coverage     97.68%   97.66%   -0.02%     
- Complexity      819      829      +10     
============================================
  Files            97       98       +1     
  Lines          2719     2744      +25     
  Branches        299      302       +3     
============================================
+ Hits           2656     2680      +24     
  Misses           35       35              
- Partials         28       29       +1
Impacted Files Coverage Δ Complexity Δ
...com/pushtorefresh/storio2/sqlite/StorIOSQLite.java 100% <ø> (ø) 7 <0> (ø) ⬇️
...orio2/sqlite/operations/delete/PreparedDelete.java 100% <ø> (ø) 2 <0> (ø) ⬇️
...fresh/storio2/sqlite/impl/DefaultStorIOSQLite.java 99.29% <ø> (ø) 10 <0> (ø) ⬇️
...o2/contentresolver/operations/put/PreparedPut.java 100% <ø> (ø) 1 <0> (ø) ⬇️
...tentresolver/operations/delete/PreparedDelete.java 100% <ø> (ø) 1 <0> (ø) ⬇️
...entresolver/impl/DefaultStorIOContentResolver.java 98.48% <ø> (ø) 5 <0> (ø) ⬇️
...storio2/contentresolver/StorIOContentResolver.java 100% <ø> (ø) 5 <0> (ø) ⬇️
...esh/storio2/sqlite/operations/put/PreparedPut.java 100% <ø> (ø) 2 <0> (ø) ⬇️
...orio2/sqlite/operations/get/PreparedGetObject.java 100% <100%> (ø) 6 <1> (+1) ⬆️
...ns/internal/MaybeOnSubscribeExecuteAsBlocking.java 100% <100%> (ø) 3 <3> (?)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 835ff7f...c16a350. Read the comment docs.

Copy link
Collaborator

@nikitin-da nikitin-da left a comment

Choose a reason for hiding this comment

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

Great!

}

@Override
public void subscribe(MaybeEmitter<Result> emitter) throws Exception {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nullability

@nikitin-da nikitin-da merged commit cce25b0 into pushtorefresh:master Nov 27, 2017
@geralt-encore geralt-encore deleted the maybe branch November 28, 2017 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants