Controls the physical layout of the fields of a class.
控制类的各字段的物理布局。
So, if any of those methods contain references to any fields in the original class, you get a compiler error because they are invisible to the superclass.
所以,如果这些方法中的任何一个方法含有对原始类中的任何字段的引用,就会得到一个编译错误,因为它们对超类是不可见的。
Instead of defining a separate class for empty lists, it represents empty lists by putting a null pointer in both fields.
它在两个域中都放置一个空指针来表示空链表,而不是为空链表定义一个单独的类。
Often developers will add many fields to classes without realizing that each int field they add to a class will be multiplied by a large factor (the number of instances) at run time.
通常,开发人员会为类添加很多字段,而未意识到为类所添加的每个整型字段都会在运行时与一个较大的因数(实例数量)相乘。
It can be used to access fields and methods in instances of a class, giving a way of dynamically hooking together classes at runtime without the need for any source code links between the classes.
可用它来访问类实例中的字段和方法,从而提供了一种在运行时将类动态地挂钩在一起,却无需类之间有任何源代码链接的方法。
The third solution, which I cover in this article, is to write a single class that dynamically molds itself at runtime to the fields of a given table.
第三个解决方案,也是我在本文中介绍的,是编写一个类,在运行时动态地把自己塑造成指定表的字段。
From time to time, a class contains a core element of data from which the rest of the class's fields can be derived or retrieved.
很多情况下,类中包含一个核心数据元素,通过它可以派生或找到类中的其他字段。
A class that defines a table also has a set of members that define the table's fields.
定义表的类还有一组定义表字段的成员。
The biggest change is the addition of a comparator class (Listing 13) and the methods for extracting the appropriate fields and performing the actual sorting.
最大的改变是添加了comparator类(清单13)以及抽取适当字段并进行实际排序的方法。
The quick but incorrect way to remedy the problem would be to eliminate the Leaf class and represent Leaf nodes simply by putting null Pointers in the left and right fields of a Branch.
一种快速但不正确的解决这个问题的方法是除去Leaf类并通过简单地将空指针放在Branch的left和right字段中来表示leaf节点。
This mechanism is the attribute structure, which basically allows all kinds of information to be associated with a class itself or with the methods, fields, and other components of a class.
这种机制就是属性结构(attribute structure),它主要使所有类型的信息可与类本身或类的方法、字段及其他组件相关联。
But some table fields (e.g., table 3: Vehicle Date of Purchase) are not in our corresponding class because fields like this are not relevant to the Reserve a Vehicle use case.
但有些表的字段(如表3:车辆:DateofPurchase(购买日期))不在相应的类中,因为这类字段与预约车辆用例无关。
For example, a few of the fields in the ContactDatabase class are listed below.
例如,下面列出了ContactDatabase类中的几个字段。
The class should be public, and the fields should be private with a corresponding set of public getter and setter methods. Listing 8 shows a typical Java pojo.
类应当为public,并且字段应当为带有一组对应的publicgetter和setter方法的private。
To that end, I create a class to handle both the sorting and generation of comparators for each of the fields automatically. Listing 6 shows the EmployeeSorter class.
为此,我创建了一个类来为每个字段自动处理comparator的排序和创建。
For fields without signatures, I'll just use a null value. Finally, the field type is an instance of the TypeDescription class, also shown in Listing 1.
对于没有签名的字段,将只使用null值。
Reflection is the runtime discovery of information, such as methods, fields, and constructors, about a given class or interface.
反射是运行时发现的关于给定类或接口的信息,如方法、字段和构造函数。
It can be used to access fields and methods in instances of a class, providing a way of dynamically hooking together classes at runtime without the need for any source code links between the classes.
它能用于访问类实例中的字段和方法,从而提供了不需要类之间的任何源代码链接就能在运行时将类动态地挂钩在一起的方法。
If that supplied class is a generic class, all fields of the class are processed as though the most general possible parameter type definitions were supplied for the class.
如果提供的类是泛型类,那么即使为这个类提供了最通用的参数类型定义,也会处理类的所有字段。
It even lets you read and write fields and call methods of a class selected at run time.
它甚至使您能够读写字段,调用运行时选择的类的方法。
Lately, a new class of materials has emerged that manifests topological properties at room temperature and without the need of external magnetic fields.
最近,一类新的材料出现,号称不需要外磁场也能在室温下看到拓扑性质。
There are actually two types of validation error messages - those generated before the HTML form fields are bound to a class and those generated after the form fields are bound to the class.
实际上有两种错误消息类型:在捆绑html表单的时候根据类型生成的,和提交后表单元素绑定的类生成的。
Middle-class families do not take their children out of school to work in the fields or in a sweatshop because they do not need the tiny extra income a child’s labour brings in.
中产阶级的家庭不会让孩子辍学去到农田里干活或到血汗工作打工,因为他们不需要孩子挣的那点额外收入。
Every Joda class has a constructor, similar to this one, where you specify all of the fields that the Joda class can hold.
每一个joda类都有一个与此类似的构造函数,您在此构造函数中指定joda类可以包含的所有字段。
The first line creates an instance of the Document class, which consists of a collection of fields.
首先第一行创建了类Document的一个实例,它由一个或者多个的域(Field)组成。
So, a search filter of ":text" will return every text field on a page, while a search filter of ".largeFont:text" will return only the text fields on a page that are part of the "largeFont" class.
因此,一个 “:text”搜索过滤器将返回页面上的每个文本字段,而一个 “.largeFont:text” 搜索过滤器仅返回页面上作为 “largeFont”类的一部分的文本字段。
If you provide a couple of specially named fields, GORM automatically timestamps your class, as shown in Listing 15.
如果您提供几个特别的命名字段,GORM会自动给它们添加时间戳,如清单15所示。
With a basic class-to-element mapping, you're ready to start mapping fields of the book class to specific elements within the XML document.
有了基本的类到元素的映射之后,就可以开始把book类的字段映射到XML文档中的特定元素。
Programs must use memory and time to construct fields inherited from a base class even when the derived class makes no use of them.
程序必须花费内存和时间来构造从基类继承的域,即使导出类根本不使用它们。
We completely solve the divisibility problem of class Numbers a class of imaginary quadratic fields.
完整地解决了一类虚二次域类数的可除性问题。
应用推荐