Quick Index
Overview


Programming is all about variables and generics is no different.

A generic type parameter is just another type of variable.

One Generic Type Parameter


Generic Type Parameter
"T" is a generic type param.

The placeholder "T" will be replaced with an actual type when used.
Replacing Parameter With Real Type
Here we replace "T" with a real type "Employee".

Now the node is ready for use.


Two Generic Type Parameters


Generic Type Parameters
"T" and "S" are each a generic type param.

They will be replaced with actual types when used.
Replacing Parameters With Real Types
Here we replace the generic params with the real types as shown.

Now the node is ready for use.