Tuesday 11 March 2014

Naming Conventions for Type Parameters

As per convention, Type Parameter names are single character upper case letters.

The most commonly used type parameter names are:

E - Element (used extensively by the Java Collections Framework)
K - Key
N - Number
T - Type
V - Value

S,U,V etc. - 2nd, 3rd, 4th types


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment