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

3.x: [Java 8] Add operators supporting the newer platform [tracking issue] #6776

Closed
44 tasks done
akarnokd opened this issue Dec 18, 2019 · 4 comments
Closed
44 tasks done
Labels
3.x Discussion Java 8 Issues and PRs related to Java 8 support
Milestone

Comments

@akarnokd
Copy link
Member

akarnokd commented Dec 18, 2019

This issue tracks the new, Java 8-related operators to be implemented.

  • Flowable.fromOptional
  • Flowable.fromStream
  • Flowable.fromCompletionStage
  • Flowable.mapOptional
  • Flowable.collect(Collector)
  • Flowable.firstStage
  • Flowable.singleStage
  • Flowable.lastStage
  • Flowable.firstOrErrorStage
  • Flowable.singleOrErrorStage
  • Flowable.lastOrErrorStage
  • Flowable.blockingStream + 1
  • Flowable.flatMapStream + 1
  • Flowable.concatMapStream + 1

  • Observable.fromOptional
  • Observable.fromStream
  • Observable.fromCompletionStage
  • Observable.mapOptional
  • Observable.collect(Collector)
  • Observable.firstStage
  • Observable.singleStage
  • Observable.lastStage
  • Observable.firstOrErrorStage
  • Observable.singleOrErrorStage
  • Observable.lastOrErrorStage
  • Observable.blockingStream + 1
  • Observable.flatMapStream
  • Observable.concatMapStream

  • Maybe.fromOptional
  • Maybe.fromCompletionStage
  • Maybe.mapOptional
  • Maybe.toCompletionStage() + 1
  • Maybe.flattenStreamAsFlowable
  • Maybe.flattenStreamAsObservable

  • Single.fromCompletionStage
  • Single.mapOptional returns Maybe<T>
  • Single.toCompletionStage()
  • Single.flattenStreamAsFlowable
  • Single.flattenStreamAsObservable

  • Completable.fromCompletionStage
  • Completable.toCompletionStage

  • ParallelFlowable.mapOptional
  • ParallelFlowable.flatMapStream
  • ParallelFlowable.collect(Collector) returns Flowable
@JakeWharton
Copy link
Contributor

JakeWharton commented Dec 19, 2019

How about eliminating the plural sibling classes and moving their static factories onto the main class? For example, the factories on Disposables can be moved to Disposable.

Nevermind this isn't operator-related. I'll just send a PR!

@akarnokd
Copy link
Member Author

Will Android desugaring be able to work with that?

@JakeWharton
Copy link
Contributor

Yep. Supported since AGP 3.2 well over a year now.

@akarnokd
Copy link
Member Author

The previously ??? marked entries will be better implemented externally for now (RxJavaExtensions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Discussion Java 8 Issues and PRs related to Java 8 support
Projects
None yet
Development

No branches or pull requests

2 participants