oldergod / RxDataBinding

RxJava2 binding APIs for Android's Data Binding Library.
Apache License 2.0
15 stars 1 forks source link

propertyChanges from ? extends T #4

Open reinaldomoreira opened 6 years ago

reinaldomoreira commented 6 years ago

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.

oldergod commented 6 years ago

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

reinaldomoreira commented 6 years ago

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

oldergod commented 6 years ago

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

reinaldomoreira commented 6 years ago

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

oldergod commented 6 years ago

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 notifications@github.com 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 .