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