“Field Summary” on java api doc

蹲街弑〆低调 提交于 2019-12-03 16:27:53

The “Field Summary” of a generated Javadoc page is for summarizing the (typically public and protected) fields of a class, and providing links to the more detailed descriptions of the fields further down the page. Just as with methods, the text in the summary section for fields consists of the first sentence from the associated detail section.

Since good practice has evolved for Java that means that mutable fields are usually private, it is usually just constants that are documented there (e.g., java.lang.Double has a few) though there are some classes that have modifiable fields (e.g., javax.xml.ws.Holder has one, and the class is sufficiently simple that this isn't a problem).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!