Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Generic classes and interfaces parameterize types by adding a type parameter within angular brackets (i.e., <T>). The type is instantiated at the place of the brackets.
Once instantiated, the generic parameter type is applied throughout the class for methods that have the same type specified. In the following example, the add( ) and get( ) methods use the parameterized type as their parameter argument and return types, respectively: