在使用泛型时,可以提供附加信息作为源代码的一部分,然后编译器会把附加的引用类型信息直接整合到二进制的类文件中。
When you use generics, you supply that added information as part of the source code, and the compiler incorporates the added reference type information directly into your binary class files.
这里,使用枚举可能值得考虑,因为它可以消除对引用类型的需要,并且将值直接存储到类中。
It might be worth considering an enumeration here since it would remove the need for a reference type and store the value directly in the class.
它计算被方法或类引用的完全不同的类型的数量。
It is based on the number of distinct types referenced by the method or class.
只需要将类型库jar放在类路径中,然后在模式中引用这些类型就可以了。
Simply place the type library JAR in the classpath, then reference the types in your schemas.
其他的特性还包括类不变量、非空引用类型和加强的静态分析功能。
Other features include class invariants, non-nullable reference types, and enhanced static analysis capabilities.
JNDIREFNAMES是一个实用程序类,它拥有引用的各种类型的值。
JNDIREFNAMES is a utility class that holds the values of various types of references.
因此,不能复制在编译时根本不知道是什么类的类型引用。
OK, so you can't copy a reference to a type whose class is totally unknown at compile time.
保持引用属性变更监听器意味着PersonPOJO必须保留某种类型的集合类(例如arraylist)来包含所有引用。
Keeping the reference to the property change listener means the Person POJO has to keep some kind of collection class (such as ArrayList) to contain all the references.
JMS消息类型格式定义在用于引用的 com.ibm.websphere.sib.SIApiConstants类中。
The JMS message type formats are defined in the com.ibm.websphere.sib.SIApiConstants class for your reference.
对于global声明,需要指定它的类型(即类名)和想要用于引用它的标识符(即变量名)。
For a global declaration, you need to specify its type (that is, class name) and the identifier you want to use to refer to it (that is, variable name).
复杂项类型的逻辑模型还可以包括helper类,并且项可以具有引用Helper对象的属性。
The logical model for complex item types can also include helper classes, and items can have properties that refer to helper objects.
该分析器从初始类开始将引用的所有类贯穿起来,在此过程中处理泛型类型的置换。
Starting from an initial class, the analyzer chains through all referenced classes, handling substitution of generic types as it goes.
象对静态方法和类所做的那样,只要防止程序员在静态字段中引用泛型类型,情况就会好很多。
It would be much better to simply prevent the programmer from referring to generic types in static fields, as is done in the case of static methods and classes.
通常地,你可以把分类器当做类,但在技术上,分类器是更为普遍的术语,它还是引用上面的其它三种类型为好。
Generally, you can think of a classifier as a class, but technically a classifier is a more general term that refers to the other three types above as well.
您可以引用首个类型作为它的父类,并将其他的作为起源。
One can refer to the first type as its parent and the others as progenitors.
请记住这一点,不要错误地认为对这个类的所有引用都会被转换为新的接口类型。
Keep this in mind so you don't make the mistake of thinking that all references to a class have been changed to the new interface type.
当然,无论是简单字符串类型和更加复杂的类型,如address,这些类型都用类表示,后面带有“Type”,因此在生成的清单中会看到对addresstype的引用。
Of course, those types are all represented by classes that end in "type," which is why you see references to AddressType in the generated listings.
在这种情况下,bean引用的类型将由Tuscany运行时从bean类定义中进行内省(introspect),以验证它并将它与在复合集中定义的sca应用类型相匹配。
In such cases, the type of the bean references will be introspected by Tuscany runtime from the bean class definition to validate and match it with the type of sca references defined in the composite.
对于每个项类型,存在一个单独的项句柄类,用于表示对该类型的项的引用;项句柄由项类型和项id组成。
For each item type there is a separate item handle class used to represent references to items of that type; item handles consist of item type and item id.
对于超类,您可以引用“core”方案之中“Unit”或者“SoftwareComponent”定义的通用类型,或者您可以引用另一种预定义域中更特定的单元。
For the supertype, you can refer to the general types "unit" or "SoftwareComponent" defined in the "core" schema, or you can refer to a more specific unit in another predefined domain.
例如,我们可以将Scrollable的父类引用为类型T。
For example, we can refer to the parent class of Scrollable as type t.
fielddescription类只是个简单的数据类,容纳字段名称、签名和字段类型的引用。
The FieldDescription class is just a simple data class that holds the field name, signature, and a reference to the field type.
当具有基类的引用或指针,但需要执行不是基类组成部分的派生类操作的时候,需要动态的强制类型转换。
Dynamic casts are needed when we have a reference or pointer to a base class but need to perform operations from the derived class that are not part of the base class.
通过运行时类型识别(RTTI),程序能够使用基类的指针或引用来检索这些指针或引用所指对象的实际派生类型。
Run-time Type Identification (RTTI) allows programs that use pointers or references to base classes to retrieve the actual derived types of the objects to which these pointers or references refer.
引用类型:一个对象传递到多个类?。
如果基类成员与派生类成员接受的实参不同,就没有办法通过基类类型的引用或指针调用派生类函数。
If the base member took different arguments than the derived-class member, there would be no way to call the derived function from a reference or pointer to the base type.
类类型和字符串类型属于引用类型。
该类型所在的项目或程序集未从包含类图的项目进行引用。
The type is in a project or assembly that is not referenced from the project that contains the class diagram.
对于引用类型,隐式转换始终存在于从一个类转换为该类的任何一个直接或间接的基类或接口的情况。
For reference types, an implicit conversion always exists from a class to any one of its direct or indirect base classes or interfaces.
对于引用类型,隐式转换始终存在于从一个类转换为该类的任何一个直接或间接的基类或接口的情况。
For reference types, an implicit conversion always exists from a class to any one of its direct or indirect base classes or interfaces.
应用推荐