Is there a javadoc tag for documenting generic type parameters?

后端 未结 2 917
执念已碎
执念已碎 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:10

    It should be done just like this:

    /**
     * @param  This describes my type parameter
     */
    class MyClass{
    
    }
    

    Source

提交回复
热议问题