Figure 1 shows an example class model, which represents a company with employees and offices.
图1显示了一个实例类模型,它表示一家拥有雇员和办公室的公司。
The example class in this article also includes the main function, but that is not a requirement.
本文中的示例类还包括main函数,但这不是必需的。
We need a main method to apply advice to our Example class, and print out some helpful status messages.
我们需要一个main方法将advice应用到我们的Example类,并打印出一些有帮助的状态消息。
Figure 1 shows these terms with an example class named MyClass which is holding a HashSet that contains string objects.
图1通过名为MyClass的示例展示了这些术语,此示例具有一个HashSet,包含字符串对象。
If you need to connect from one of your own programs, then you could replace the "MyZODB" example class given above with something that connects to ZEO instead.
如果希望从自己的某个程序连接,可以将上面给出的“MyZODB”示例类替换为某个连接到ZEO的类。
For example, all a VFR pilot has to do to enter Class C airspace is establish two-way radio contact with ATC.
例如,VFR飞行员进入C类空域所要做的就是与空中交通管制建立双向无线电联系。
If you observed a four-year-old child, for example, my daughter is 4 years old; you might read up on Piaget's stages of cognitive development we covered those in class.
如果你观察一个四岁的孩子,例如我四岁的女儿,你可能要先研读皮亚杰的认知发展阶段理论,这一理论是我们在课堂上讲过的。
One example is class loading that invalidates monomorphic call transformations.
一个例子是使单态调用转换失效的类装载。
Example usages of the Msg class are as follows.
下面是msg类的使用实例。
Listing 2 presents an example of a class that USES atomic updates to change the book that someone is reading.
清单2展示一个有关类的示例,该类使用原子更新来更改某人正在读取的书目。
Figure 1 shows an example PDFBox class diagram.
图1显示了一个范例的pdfbox类图。
This example calls the XmlAccess class, passing in the required parameters.
此示例调用xmlaccess类,并同时传入所需的参数。
For example, the subscriber class encapsulates the subscriber data that forms part of a request (a start session request, for example).
例如,Subscriber类封装了构成部分请求的订阅者数据(例如,一个开始会话的请求)。
Listing 13 shows the most important part of the test example: the Collaborator class.
清单13显示了测试示例的最重要部分:collaborator类。
NextGen example: Modified class loader.
NextGen示例:修改的类装入器。
Listing 7 provides an example mapping of the ShippingAddress class.
清单7提供了映射shippingaddress类的示例。
In this example, the DisplayAction class sets the ArrayList object's state and status with a few values.
本例中,displayaction类用几个值来设置arraylist对象的state和status。
The customer class shown in Listing 3 is a good example of a class that USES setter injection.
清单3所示的customer类是使用setter注入的类的良好示例。
Let's make the goal more complex and add some conditional text rendering - for example, CSS class names for even and odd table rows.
现在让我们实现更复杂的目标并添加一些有条件的文本呈现—例如,命名偶数和奇数表行的css类。
For example, in the resource class, uncomment the method in Listing 23.
例如,在资源类中,取消清单23中的方法的注释。
For example, the proxy class could delegate the method invocation to any other object or even handle it itself.
例如,代理类可以把方法调用委托其他任何对象,甚至是处理程序本身。
For example, a class load from another location may not be trusted for access to the local filesystem.
例如,当从另一个位置加载的类访问本地文件系统时,我们可能不信任它。
For example, the first class load from each JAR on the application classpath is always loaded from disk and stored, regardless of whether it exists in the cache or not.
例如,从应用程序类路径中的每个JAR装载的第一个类总是从磁盘装载并存储,无论它是否在缓存中存在。
For example, the same class is never added twice, even if it is loaded from many different locations.
例如,同样的类不会添加两次,即使它是从许多不同的位置装载的。
Listing 1 shows an example of how this class might be implemented using locks (synchronization).
清单1显示了如何使用锁定(同步)实现该类的例子。
It is defined as a separate element, because it is possible for a single class to contribute to multiple parts of a transformation (for example, class, property, and operation).
它被定义为单个的元素,因为单个类对转换的多个部分(举例来说,类、属性,和方法)做出贡献是可能的。
This article gives you a simple example of a small class hierarchy to illustrate this concept.
本文将提供一个小型类层次结构的例子,举例说明这个层次结构的概念。
For example, a class loader could first load a class explicitly and then load all of its referenced classes implicitly.
例如,类装入器可能先显式地装入一个类,然后再隐式地装入它引用的所有类。
For example, when adding a class to a diagram, it can draw all these relationships automatically.
比如,在向图中增加类时,它可以自动地画出这些关系。
For example, when adding a class to a diagram, it can draw all these relationships automatically.
比如,在向图中增加类时,它可以自动地画出这些关系。
应用推荐