Listing 1. Public static final constants.
清单1.publicstatic final的常量。
Each JTCEvent subclass will define static final values for the major and minor fields that represent its purpose.
每个JTCEvent子类都会为表示其用途的major和minor字段定义静态最终值。
The guide recommends you use a static final variable to create the object once at application startup and then get this object when needed.
该指南建议您在应用程序启动时使用一个静态最终变量来创建这个对象,然后根据需要获取该对象。
Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.
因为根据设计它是线程安全的,创建它之后可以把它缓存在一个公共静态最终变量中,或者包装在单实例模式中以供以后访问。
Extract constant is similar to Extract Local Variable, but you must select a static, constant expression, which the refactoring will convert to a static final constant.
ExtractConstant与ExtractLocalVariable相似,但是您必须选择静态常量表达式,重构工具将会把它转换成静态的final常量。
Static methods cannot be overridden but can be hidden if they are not final (Read about Overriding vs Hiding here).
静态方法不能被覆盖,但如果它不是决定性的则可以被隐藏。
Constants - final static fields and occasionally final local variables - are written in all uppercase with underscores separating the words, as in MAX_CONNECTIONS.
常量—终态静态字段和临时终态本地变量—全部适用大写字母,并以下划线分隔各词,如MAX_CONNECTIONS。
If you're using a static approach, you should ensure that the worst an attacker could do won't invalidate some assumption, and a few checks on the final result would be a good idea too.
如果使用静态方法,应该确保攻击者能够做的最糟糕的事情不会使得预先的假设无效,而且检查最终结果也是一个好主意。
Similarly, the Serialization detector will trigger if the field serialVersionUID isn't final, isn't long, or isn't static.
类似地,如果域serialversionuid不是final,不是long,也不是static,就会触发serialization检测器。
The criteria for control of final pressure on static piles in soft soil area is a problem frecuently discussed.
软土地区静力压桩的终压控制标准是一个探讨较多的课题。
In a static load experiment, such a method can be used to make estimation in the case that exerted final load can is not up to ultimate bearing capacity.
在静载荷试验中,由于种种原因终止荷载未达到极限荷载时,可用上述方法进行推测。
The path which is determined by static parameters is named static path, while static path becomes final path after the revision due to dynamic parameters.
由静态参数决定的路由称为静态路由,静态路由经动态参数修正以后的路由称为最终路由。
According to the Nanning many static pressure pile project's actual measurement, obtained the single pile limit supporting capacity and the final pressure relationship through the fitting analysis.
根据南宁市多个静压桩工程的实测,通过拟合分析得到了单桩极限承载力与终压力的关系式。
According to the Nanning many static pressure pile project's actual measurement, obtained the single pile limit supporting capacity and the final pressure relationship through the fitting analysis.
根据南宁市多个静压桩工程的实测,通过拟合分析得到了单桩极限承载力与终压力的关系式。
应用推荐