RxJava 2 almost released and i won't to migrate from RX 1.2.0 to 2.0.0, But I have noticed that there is no Func0 interface in RxJava 2.
What developers should use instead of Func0 in RxJava 2?
From their elaboration on what's changed between RxJava 1.x and 2.x:
We followed the naming convention of Java 8 by defining
io.reactivex.functions.BiFunction, plus renaming
FuncNis replaced by the
Function<Object, R>type declaration.
In addition, operators requiring a predicate no longer use
Func1<T, Boolean>but have a separate, primitive-returning type of
Predicate<T>(allows better inlining due to no autoboxing).
io.reactivex.functions.Functionsutility class offers common function sources and conversions to