《现场总结》关于 java api 文档

发布于 2024-10-01 17:02:32 字数 99 浏览 0 评论 0原文

当我阅读 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一片旧的回忆 2024-10-08 17:02:32

生成的 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文