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