The generalized syntax for a generic interface





  1. type-param-list is a comma-separated list of type parameters.
  2. 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> {

  

posted @ 2015-06-28 18:04  hephec  阅读(94)  评论(0编辑  收藏  举报