Forgo synchronization and use a static field.
放弃同步,而使用一个static字段。
Sets a static field contained in the wrapped type.
设置已包装类型中包含的静态字段。
Returns the field ID for a static field of a class.
返回类的静态域的域ID。 域由其名称和签名指定。
This function returns the value of a static field of anobject.
这个函数返回一个对象静态域的值。
Sets a static field or property contained in the wrapped type.
设置已包装类型中包含的静态字段或属性。
This function returns the value of a static field of an object.
这个函数返回一个对象静态域的值。
The same rules hold true if the exception is thrown from a static field initializer.
如果异常是从静态字段初始值设定项引发的,也存在同样的规则。
The best solution to this problem is to accept synchronization or use a static field.
对此问题最佳的解决方案是接受同步或者使用一个static field。
Because this decision makes all Leaves identical, we'll keep a singleton for Leaf in a static field.
由于这一决定使所有的Leaf相同,我们将用一个静态字段为Leaf保留一个单元素。
Names proceeded by "statics" indicate data structures rooted under a static field of the given class.
前接“statics”的名称表示在给定类静态字段根下的数据结构。
As you saw earlier, the code for a static field initializer executes inside an implicit type constructor.
正如您在前面看到的那样,静态字段初始值设定项的代码在隐式类型构造函数的内部执行。
By contrast, a static field belongs to the class itself, and is Shared among all instances of that class.
相较之下,静态栏位属于类别本身所有,在该类别的所有执行个体之间共用。
An example might be a method that reads the value of a static field for a class that hasn't yet been loaded.
比如一个方法需要读取某个尚未加载的类的静态字段值。
The lookup table is referenced from a static field in ObjectStreamClass and is kept in the class itself rather than in an instance of it.
查询表是从ObjectStreamClass中的静态字段引用的,而且保存在类本身之中,而不是保存在实例中。
The second scenario is when a type has a initializer for a static field, in which case the compiler adds a type constructor behind the scenes.
第二种情况是,类型具有一个用于静态字段的初始值设定项,在这种情况下,编译器会在后台添加类型构造函数。
Now in the JSR-14 compilers 1.0 and 1.2, if you refer to a type parameter in a static field declaration, the compiler doesn't complain but it should.
现在,在JSR-14编译器 1.0和 1.2 中,如果您在静态字段声明中引用类型参数,编译器不会报错,但它本应该这么做。
While executing in your finalization method during domain unloading, you might want to access another object that is referenced by a static field and has a finalization method.
在域卸载过程中执行终止方法时,您可能需要访问另一个由静态字段引用并且有终止方法的对象。
This flag allows the runtime to execute the type constructor method at any time it chooses, as long as the method executes before the first access to a static field for the type.
此标志使得运行库能够在任何时候执行类型构造函数方法,只要该方法在第一次访问该类型的静态字段之前执行即可。
In contrast, with a static field, that field exists in only one memory location (or, more specifically, in only one memory location per AppDomain), regardless of the number of instances.
而相反,对于静态字段,无论有多少实例,该字段只位于一个存储位置(或者,更具体地说,在每个AppDomain中,只位于一个存储位置)。
As the field strength of the static field increases, so does the potential for a variety of interactions with the body.
由于静电场的场强度增强,从而与身体产生的各种相互作用也有可能增强。
If it is not a static class, you first need to declare the name of the field that will hold the reference to the parent class of the nested class before you get to the preview box.
如果它不是一个静态类,那么需要首先声明保存有对此嵌套类的父类的引用的那个字段的名称,之后才能看到这个预览框。
When he got to the edge of the field he heard what he believed to be a sound not dissimilar to static electricity.
当他来到田边时,听到一种声音,他确信是类似于静电的声音。
A static magnetic field is measured in units of ampere per metre, (A/m) but is usually expressed in terms of the corresponding magnetic induction measured in units of tesla, (T) or millitesla (mT).
静电磁场以每米具有的安培单位衡量(A/m),但是通常以相应的电磁感应单位特斯拉(T)或毫伏特斯拉(mT)表示。
The problem is that programmers could accidentally write such code (say by mistakenly including a static modifier in a field declaration, due to copy-and-pasting).
问题是程序员可能会无意中编写这样的代码(比如,由于“复制和粘贴”操作,错误地在字段声明中包括静态修饰符)。
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.
在常量表达式,比如枚举型常量、位域的宽度或是静态变量的初始值,是不允许使用在这种声明中的。
Listing 4 shows an example of the power of adding a simple validation routine to the account number field to make sure it cannot be a non-number in addition to using static columns.
清单4显示了除使用静态列外,还可以向帐户编号字段添加简单验证例程以确保输入值不是非数字值。
The class no longer requires a method, because the constants go into static field initializers in the dex file.
这个类将不会调用方法,因为这些常量直接写入了类文件静态属性初始化中,这个初始化直接由虚拟机来处理。
The RolloverComposite will contain its single instance in a public static field called DEFAULT.
RolloverComposite将在叫做DEFAULT的公共静态(public static)域包含它的单个实例。
The validation arguments' values can either be static using the value attribute or dynamic by linking it to a form field using the sourcefield attribute.
验证参数的值可以使用value属性规定为静态的,也可以通过使用sourcefield 属性将其链接到表单字段,将值规定为动态的。
The validation arguments' values can either be static using the value attribute or dynamic by linking it to a form field using the sourcefield attribute.
验证参数的值可以使用value属性规定为静态的,也可以通过使用sourcefield 属性将其链接到表单字段,将值规定为动态的。
应用推荐