RxDataBinding icon indicating copy to clipboard operation
RxDataBinding copied to clipboard

propertyChanges from ? extends T

Open reinaldomoreira opened this issue 7 years ago • 5 comments

Hey all, I don't get it why use ? instead of T directly in RxObservableField<>.propertyChanges(? extends T). If I use like this, I end up with something like Flowable<? extends String> in my code because the compiler won't accept Flowable<String>.

reinaldomoreira avatar May 10 '18 14:05 reinaldomoreira

propertChanges() returns an Observable. What if you do RxObservableField.propertyChanges(observableField).toFlowable() ?

oldergod avatar May 10 '18 20:05 oldergod

Sorry, I forgot to mention that I already do .toFlowable(), and with this, I end up with a Flowable<? extends String> instead of Flowable<String>

reinaldomoreira avatar May 11 '18 17:05 reinaldomoreira

So what's the problem? Your Flowable must have a type argument.

oldergod avatar May 13 '18 01:05 oldergod

I don't know why it didn't show in my comment but I said Flowable < String > (not Flowable)

reinaldomoreira avatar May 20 '18 20:05 reinaldomoreira

I'm sorry; could you show me some code so I can have a better understanding of the problem? Or maybe a falling/not compiling test?

On Sun, May 20, 2018, 16:57 Reinaldo Moreira [email protected] wrote:

I don't know why it didn't show in my comment but I said Flowable < String

(not Flowable)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/oldergod/RxDataBinding/issues/4#issuecomment-390512131, or mute the thread https://github.com/notifications/unsubscribe-auth/ABr49SWnWYxUAEDyTbroKuMd0wMlvXbDks5t0diugaJpZM4T6BMW .

oldergod avatar May 21 '18 02:05 oldergod