繁体   English   中英

如何在类中引用最终静态字段的值?

[英]How can I reference the value of a final static field in the class?

使用JavaDoc,如何引用类中最终静态字段的值?

我想要??? 在此示例中,替换为字段STATIC_FIELD的值。

/**
 * This is a simple class with only one static field with the value ???.
 */
public class Simple {

    /**
     * We can reference the value with {@value} here, 
     * but how do we reference it in the class JavaDoc?
     */
    public static final String STATIC_FIELD = "simple static field";

}

你的意思是{@value #STATIC_FIELD}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM