I am trying to convert the item emitted from an observer to another type. I tried the map
function with no success.
mObservable = RxTextView.textChanges(mEditText).map(a -> Float.parseFloat(a.toString()));
Using as above I get this compiler error:
Error:(37, 70) error: incompatible types: inference variable R has incompatible bounds
equality constraints: CharSequence
lower bounds: Float
where R,T are type-variables:
R extends Object declared in method <R>map(Func1<? super T,? extends R>)
T extends Object declared in class Observable
Is there any operator which can achieve the conversion CharSequence
to Float
I need?