4 ms·
> Java`s generics have had issues due to use site variance Use site variance can be really powerful when you're dealing with invariant data structures like Lis
by hdhzy 9y ago
> Java`s generics have had issues due to use site variance
Use site variance can be really powerful when you're dealing with invariant data structures like Lists. You can then treat them like covariant or contravariant depending on a particular method call at hand.