is it possible to have generics that need to fulfi...
# announcements
t
is it possible to have generics that need to fulfill one upper bound or the other? With where clauses you can only specify multiple upper bounds that all need to be fulfilled at the same time
a
Sounds like a code smell. What do option A and option B have in common with each other?
t
they have in common that they are both classes from the android API, which smells to high heaven, unfortunately I can not change that. The new arch
ViewModel
only seems to works for
Fragment
and
FragmentActivity
but they have no common interface