What is common is the use of use static finals to implement "constant" values, an approach that goes against the object-oriented concept of information hiding.
常见的是使用usestaticfinals来实现“常数”值,这是一种与信息隐藏的面向对象概念背道而驰的方法。
Atoms are static (or constant) literals.
原子值是静态的(即不变的)字面值。
Embedded statements are not allowed in constant expressions, such as the value of an enumeration constant, the width of a bit-field, or the initial value of a static variable.
在常量表达式,比如枚举型常量、位域的宽度或是静态变量的初始值,是不允许使用在这种声明中的。
Static fields aren't ideal but are reasonably painless when the value of the constant isn't likely to change — such as the values for the days of the week.
静态字段并不理想,但是当常数值不可能更改(例如一星期内的天数)时,也可以使用这种方法。
Why can't we define a constant variable as static?
为什么我们不能一个常数变量定义为静态的?
From Aristotle's static Earth to Einstein's greatest blunder, the constant which forces a static universe, we proceed only from the wisdom of our weak minds.
从亚里士多德的地球静止到爱因斯坦的最大失误,不断强迫一个静态宇宙我们开始只能从智慧的头脑。
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常量。
While static properties are often declared private to prevent meddling, there is one way of creating a read-only statically scoped property: You can declare a constant.
尽管静态属性通常被声明为private来防止别人干预,但有一种方法可以创建只读静态范围的属性,即声明常量。
Nature of this environment is not static, by the view of traditional Chinese, all things in the world are from the "gas", while "gas" is constant movement.
自然这个大环境并不是一成不变的,在中国传统文化里面认为世界上万事万物都是由“气”构成,而“气”又是不断的运动。
The power source possesses the advantages of high efficiency, energy and materials saving, constant static and good dynamic characteristics.
该电源具有高效、节能、节材、恒流静特性和动特性好等优点。
The difference between static bottomhole pressure and flowing bottomhole pressure (in psi) at a constant fluid production rate.
在恒定的流体产量下,在井底静压力与井底流动压力之间的压力差值。
SL201 adopts dynamic pressure protection. Compared with domestic products, which only use static pressure protection, SL201 achieved constant pressure during pressure protection.
SL201型半自动压样机采用动态保压,相比国内同类产品的静态保压,它真正做到了在保压时维持压力不变。
It has been shown that the tire dynamic stiffness is not a constant, which increases with the vertical load and inflation pressure, and it is different from the static one.
研究结果表明:轮胎的动刚度不是常数,它随着垂直载荷、充气压力的增加而增大;滚动时的动刚度不同于静刚度。
Both the theoretical and experimental results have shown that there is a constant water level difference between the refined dynamic water level and the static one in the same well.
理论分析和实验表明,改性动水位与同一井孔对应的静水位之间相差一恒定水位落差。
A good example of this was Einstein, who called the cosmological constant, which he introduced when he was trying to make a static model of the universe, the biggest mistake of his life.
爱因斯坦即是一个好的榜样,他在企图建立一个静态的宇宙模型时引入了宇宙常数,他称此为一生中最大的错误。
Some energy optimized control strategies based on static model, such as Constant Slip control, may significantly harm the dynamic character and stability of drive systems.
而一些从静态模型出发的能量优化控制策略,如恒转差频率控制,会降低调速系统的动态性能和稳定性。
Constants defined within modules are imported as public constant static members of a class with the same name as the original module.
在模组内定义的常数会汇入,做为与原来模组具有同样名称之类别的公用常数静态成员。
The results show that under static or quasi-static loading the fractal dimension DF is nearly a constant, but under dynamic(impact)loading the DF obviously increases with the loading rates.
结果表明,在静态或准静态加载条件下的断裂面分维数近似为一个常数,但在动态(冲击)加载时,分维数随着加载率的增加而明显增加。
The constant temperature, static state corrosion resistant test and results of mining glass fibre net false roof materials under analog working conditions and special working conditions are presented.
本文介绍了矿用玻璃纤维网假顶材料在模拟自然工况和特殊工况条件下的恒温、静态耐腐蚀试验及结果。
Einstein is universe of supportive static state and not be expanding universe and put forward cosmic constant.
爱因斯坦为撑持静态宇宙而不是膨胀的宇宙而提出了宇宙常数。
It points out that arc dis charge time is related to circuit time constant and the product of inductance and static current.
指出放电时间与电路时间常数以及电感和稳态电流的乘积相关。
Coupling capacitance between the heatsink and the devices produces common mode emission, which is considered as a constant calculated by a equation resulting from the static field for a long time.
散热片与器件间的电容耦合是电路产生共模辐射的主要原因之一,其对研究电路的辐射发射特别重要。然而长期以来人们将该电容简化为平板电容,采用静电场推导的电容公式计算。
Because the compiler allocates constant strings in a static read-only memory, any attempts to modify it cause access violations and random crashes.
因为编译器在静态只读内存中分配常数字符串,所以,尝试修改该内存会导致访问冲突和随机崩溃。
Because the compiler allocates constant strings in a static read-only memory, any attempts to modify it cause access violations and random crashes.
因为编译器在静态只读内存中分配常数字符串,所以,尝试修改该内存会导致访问冲突和随机崩溃。
应用推荐