Join Slack
Communities
Powered by
What is the equivalent to Javas <? extends R &a...
# announcements
j
jojo.lichtenberger
12/13/2019, 5:17 PM
What is the equivalent to Javas <? extends R & S> with generics?
c
Casey Brooks
12/13/2019, 5:20 PM
You’re looking for the
where
-clause
https://kotlinlang.org/docs/reference/generics.html#generic-constraints
d
Diego Almeida de Oliveira
12/13/2019, 6:04 PM
Is it Java's wildcard? If so, then look into Variance:
https://proandroiddev.com/understanding-generics-and-variance-in-kotlin-714c14564c47
Open in Slack
Previous
Next