Skip to content

2.0 Design: Naming #2787

Closed
Closed
@akarnokd

Description

@akarnokd

Since we are aiming at Java 9 and j.u.c.Flow as the base API, we have the opportunity to use Java-native functional interfaces instead of our Func and Action interfaces, plus rename other components.

I propose the following changes:

  • Observable -> Flowable
    • Plus: no more name conflict with j.u.Observable or RxJava 1.0's Observable
  • XXXSubject -> XXXProcessor
  • XXXSubscription -> XXXDisposable
  • Func0 -> j.u.c.f.Supplier
  • Func1 -> j.u.c.f.Function
  • Func1<T, Boolean> -> j.u.c.f.Predicate
  • Func2 -> j.u.c.f.BiFunction
  • Func3..FuncN -> rx2.functions.TriFunction or rx2.functions.Function3 etc.
  • Action0 -> Runnable
  • Action1 -> j.u.c.f.Consumer
  • Action2 -> j.u.c.f.BiConsumer
  • Action3..ActionN -> rx2.functions.TriConsumer or rx2.functions.Consumer3 etc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions