Type Parameter Naming Conventions

Use single 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

Last updated