4 ms·
It isn't a problem if you design an API by following the rules (PECS). Use wildcards for method parameters when this is the desired behavior. It is not hard to
by NovaX 7y ago
It isn't a problem if you design an API by following the rules (PECS). Use wildcards for method parameters when this is the desired behavior. It is not hard to do things right.
https://howtodoinjava.com/java/generics/java-generics-what-is-pecs-producer-extends-consumer-super https://howtodoinjava.com/java/generics/java-generics-what-i...