Generics mais avançado: Invariância, Covariância, Contravariância e Bivariância
Description
Conhece Up/Down Casting? Conceitos de Produtor e Consumidor em Generics? Como acontece a hierarquia de tipos com tipos genéricos? Play no p de Podcast.
Participantes:
Marcio Frayze David
marcio@segunda.tech
https://twitter.com/marciofrayze
https://segunda.tech
https://masto.donte.com.br/web/accounts/138458
https://linkedin.com/in/marcio-frayze
Julianno Martins Silva
juliannoms@gmail.com
https://twitter.com/juliannoms
https://linkedin.com/in/juliannoms
Links:
Generics no Java:
https://docs.oracle.com/javase/8/docs/api/java/util/List.html
https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html
https://docs.oracle.com/javase/tutorial/java/generics/upperBounded.html
https://docs.oracle.com/javase/tutorial/java/generics/lowerBounded.html
https://docs.oracle.com/javase/tutorial/java/generics/unboundedWildcards.html
https://medium.com/omnius/wildcards-in-java-generics-part-1-3-dd2ce5b0e59a
https://medium.com/omnius/covariance-in-java-return-types-part-2-3-a5bf1d9c63fa
https://medium.com/omnius/wildcards-in-java-generics-part-3-3-8f7f5ebea1a5
Generics no Kotlin:
https://medium.com/android-dev-br/generics-e-variance-em-kotlin-in-out-t-ca5ca07c9fc5
Generics no .NET:
https://docs.microsoft.com/en-us/dotnet/standard/generics/covariance-and-contravariance
https://docs.microsoft.com/pt-br/dotnet/standard/generics/covariance-and-contravariance