《现场总结》关于 java api 文档
当我阅读 Java 的 API 文档时,我看到一个名为“Field Summary”的字段。 这部分的用途是什么?
常量和类在这个领域有什么用?
谢谢。
when I read the API documentation of Java I see a field with the name "Field Summary".
What this Part is used for?.
What is the use of the constant and classes in this field?.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
生成的 Javadoc 页面的“字段摘要”用于总结类的(通常是公共和受保护的)字段,并提供指向页面下方字段的更详细描述的链接。与方法一样,字段摘要部分中的文本由相关详细信息部分的第一句组成。
由于 Java 已经发展出良好的实践,这意味着可变字段通常是私有的,因此通常只是在那里记录的常量(例如,
java.lang.Double
有一些)尽管有些类具有可修改的字段(例如,javax.xml.ws .Holder
有一个,并且该类非常简单,这不是问题)。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).