Mega Code Archive

 
Categories / Java Tutorial / Generics
 

The generalized syntax for a generic interface

type-param-list is a comma-separated list of type parameters. When a generic interface is implemented, you must specify the type arguments interface interface-name<type-param-list> { // ... class class-name<type-param-list>            implements interface-name<type-param-list> {