Is there a javadoc tag for documenting generic type parameters?

后端 未结 2 919
执念已碎
执念已碎 2020-12-07 23:38

I\'ve been looking through the javadoc documentation on Sun\'s site, trying to find if there\'s a javadoc tag which can be used to document a class or method\'s generic type

2条回答
  •  生来不讨喜
    2020-12-08 00:18

    Yes. Just use the @param tag, and include angle brackets around the type parameter.

    Like this:

    /**
     *  @param  This describes my type parameter
     */
    

提交回复
热议问题