When would you use generics in your code?
all of these answers
when type safety is important Official documentation: Generic classes and methods
to increase code performance
when code reuse is a priority