Re:Background: how we got the generics we have (2020)
by zeroimpl on Friday April 02, 2021 @05:25PM
(#26676169)
I’d just solve this by passing in a Class<S extends Iterable<R>> arg and making the returned list be an instance of this class, instead of forcing the input collection type to be the same as the output collection type.
[ Parent
| on HN ]