Classes can be derived from only a single class, but they can implement multiple interfaces.
类只可以从一个单一的类派生,但它们可以实现多个接口。
Grails gives you a place to store commonly used methods that transcend any single domain class: services.
Grails为您提供了保存常用方法的位置,并且超越了任何单个的域类:即服务。
The solution to this type of duplication is to refactor the code into a single Factors class, which appears in Listing 3.
去除重复的解决方案是将代码重构为一个单一的factors类,如清单3所示。
And there you have it: a single dynamic database access class that can bend itself to fit any table in your database.
现在就得到了单个动态的数据库访问类,它能够让自己适应到数据库中的任何表。
In this scenario, the servant region does not bind to any specific service class, which means all work requests will be selected by the single servant region and get serviced there.
在此场景中,服务区域没有与任何特定的服务分类绑定,这意味着所有的工作请求将由单个服务区域选择,并在该服务区域中得到服务。
The model generalizes the equilibrium model for stochastic traffic networks of single class of travelers.
该模型概括了旅客的单类随机交通网络均衡模型。
Ceramics, Pottery, or Sculpting: Going to a single class, or taking a series of ceramic classes can give you a chance to sit and talk while experimenting with your creativity.
陶艺与雕刻:参加陶艺课程,无论单次还是系列的,都能给你一面坐着交谈一面实践创造力的机会。
This works well for single method changes or class extensions to already existing libraries.
这种模式非常适合单个方法的修改或者是在已有类库的基础上对类进行扩展。
This allows a single JSP class to be reloaded when necessary, without affecting any other loaded JSP classes.
这使得在必要时可重新加载单独的jsp类,而不会影响到任何其它加载的jsp类。
The ServiceUI class provides a single method to display the printer selection dialog
ServiceUI类提供一个单独的方法来显示打印机选择对话框
Annotation driven approaches work well if there is a single configuration being used per class which is pretty much what you need 90% + of the time.
如果各个类有一个简单的配置,能够满足超过90%的需要,那么标注驱动的方法是可行的。
Figure 8 presents the solution for the third mapping strategy — mapping a single class to a single data entity.
图8显示了第三种映射策略的解决方案——将单个类映射成单个数据实体。
The DataReader class can incrementally load the results of the same query and present a single row at a time to an application.
datareader类可以递增地加载同一查询的结果,并且一次向应用程序提交单个行。
The class covers security hardening, customizing authentication, integration, single sign on, and a variety of other related topics in depth.
这个课程深入讲解安全性加强、定制身份验证、集成、单点登录和各种其他相关主题。
For a single class, you can define the name of the class, its attributes, and its operations.
对于一个单独的类,你可以定义类的名字,属性和操作。
An easy way to follow the Single Responsibility Principle is to constantly ask yourself whether every method and operation of a class is directly related to the name of that class.
遵循单一责任原则的最简单办法就是不断地问自己是不是这个类的每一个方法和操作都与这个类的名称直接相关。
The ClassTransformer's single method - transform - is passed the class to be redefined and a byte array containing the class's bytecode.
ClassTransformer的单个方法—transform—被传入要重定义的类和包含类的字节码的字节数组。
As opposed to languages that only support single inheritance, Scala has a more general notion of class reuse.
与只支持单继承的语言相比,Scala具有更广泛意义上的类重用。
You can have multiple events on a single page, each wrapped in a tag marked with the vevent class.
单独的一个页面上可以有多个事件,各事件均包含于一个用vevent类进行标记的标记中。
Modern vector control for malaria is exceptionally dependent on a single class of molecule, the pyrethroids.
现代的疟疾病媒控制特别依赖于单一化学分子,即除虫菊酯。
The A320 Family offers thewidest cross section in the single aisle aircraft market with theAirbus standard 18 inch wide seat in economy class.
A320系列飞机为单通道飞机市场提供了最大的横截面。其经济舱配备18英寸宽标准座椅。
Martin Fowler describes it as: Putting all presentation state and behavior for a window in a single class.
MartinFowler的回答是:将一个窗口所有的表现状态和行为都放在一个类里。
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.
第三个解决方案,也是我在本文中介绍的,是编写一个类,在运行时动态地把自己塑造成指定表的字段。
XDoclet is a tool that lets you write only a single class for EJB for database access instead of a minimum of four classes.
XDoclet是一个非常有用的工具,使用这个工具您只需要为访问数据库的EJB编写一个类即可,而不用编写4个类。
With singletons implemented as single instances instead of static class members, you can initialize the singleton lazily, creating it only when it is first used.
由于单例对象作为实例存在而不是类的静态成员,所以你能够惰性地初始化单例对象,即只需要在第一次用它的时候才去创建它。
The next step is to create an instance of QueryExecution, a class that represents a single execution of a query.
下一步是创建QueryExecution的实例,这个类表示查询的一个执行。
The framework is easy to use for most benchmarking needs: just package the target code into some type of task object (either a Callable or Runnable) and then make a single call to the benchmark class.
这个框架很容易满足大多数基准测试需求:只要把目标代码打包成特定类型的任务对象(Callable或Runnable),然后调用benchmark类。
The function f is type as a function that takes a single input parameter of type View (another class from Android) and returns Unit, which is the Scala equivalent of void.
这个函数f的类型为带一个View 类型(Android中的另一个类)的输入参数的函数,并返回Unit,它是void在Scala 中的对等物。
The PeriodicThreadDescriptor class describes a thread to be started as part of a group. It provides a single public constructor.
PeriodicThreadDescriptor类描述了一个线程作为线程组的一部分启动。
The PeriodicThreadDescriptor class describes a thread to be started as part of a group. It provides a single public constructor.
PeriodicThreadDescriptor类描述了一个线程作为线程组的一部分启动。
应用推荐