Interfaces should be small, preferably containing a single method.
接口应该小,最好只包含一个方法。
This interface requires you to implement a single method called event().
这个接口要求实现一个称为 event() 的方法。
The ServiceUI class provides a single method to display the printer selection dialog
ServiceUI类提供一个单独的方法来显示打印机选择对话框
The example shows an interface called PersonProvider, which declares a single method.
该示例显示了一个名为PersonProvider的接口,该接口将声明单个方法。
A single method can no longer produce reliable estimates across every step in the process.
单一的评估方法不可能在过程的每一步产生可靠的评估结果。
Similarly, the ChannelOutput interface consists of a single method called write(Object o).
类似地,ChannelOutput接口也只有一个方法,叫作write(Objecto)。
The Executor interface has a single method - execute - that accepts the Runnable parameter.
Executor接口有一个execute方法,它接受Runnable参数。
This works well for single method changes or class extensions to already existing libraries.
这种模式非常适合单个方法的修改或者是在已有类库的基础上对类进行扩展。
The java.util.concurrent.Executor interface has only a single method: execute (Runnable).
Executor接口仅有一个方法:execute (Runnable)。
Parents may find that the more they rely on one single method, the less effective that method becomes.
父母们也许会发现他们越依赖单一的方法,那个方法就越没那么有效。
A single method may, depending on the arguments, either retrieve (access) data or change (mutate) data.
取决于参数,同一个方法可以检索(access)数据,或者更改(mutate)数据。
The interface to read from a channel is called ChannelInput and consists of a single method called read .
从通道读取对象的接口叫作ChannelInput,它只有一个方法,叫作read 。
A server validator must implement the IServerValidator interface, which defines a single method, validate.
服务器验证器必须实现IServerValidator接口,它设置了一个单一方法,即validate。
Data link relies on a single method, link, to tie together input elements on a form and the target object.
Datalink通过一个名为link的方法,来将表单中的input元素和目标对象绑定在一起。
Marx's research method is not a single method, but the total of a series of methods of different levels.
马克思的研究方法不是一个单独的方法,而是一系列各种层次的方法的总和。
But in essence, an event is still connected to a single method, which might then need to act on various widgets.
但是本质上,事件仍旧被连接到单个方法上,随后可能需要作用于各种窗口构件。
One interface is provided for each type of channel exit, and each interface provides a single method to be implemented.
一个接口提供给每种通道出口,每个接口都提供一个需要实现的方法。
The results show that the stable downward continuation program has higher accuracy and stability than other single method.
结果表明,稳定下延方案较单项的其他下延方法具有更高的精度和稳定性。
The GenericDeclaration interface defines a single method, which returns the array of TypeVariables included in the declaration.
GenericDeclaration接口定义了一个方法,它返回在声明中包含的TypeVariable 的数组。
Like the RecordComparator, the RecordFilter is implemented by the addition of a single method, matches , to the enumerator code.
与RecordComparator类似,RecordFilter也是通过在枚举器代码中增加一个方法matches实现的。
The ClassTransformer's single method - transform - is passed the class to be redefined and a byte array containing the class's bytecode.
ClassTransformer的单个方法—transform—被传入要重定义的类和包含类的字节码的字节数组。
There is a single method to implement called map (which is parameterized based on the types of the (key,value) pair that are the input).
这里有一个名为 map的简单实现方法,该方法基于输入 (key,value) 对的类型进行参数化。
The drift about the evaluation conclusion of single method is studied inorder to offer the experiment basis for combination evaluation.
研究单一方法评价结论的漂移性,以便为组合评价提供实验依据。
To improve performance, you may wish to factor out the code for each model attribute into its own method (or a single method with a "switch").
为了提高性能,您可能希望抽取每个模型属性的代码放到它自己的方法中(或者带有“开关”的单个方法)。
A single method on the facade interface can execute one or more command objects, so the facade input parameters and the method return value need to be well chosen.
在facade接口中一个单独的方法可以执行一个或多个command对象,因此facade输入参数和方法返回值需要进行很好的选择。
The comprehensive analysis is an effective way to investigate the dam seepage, which can avoid using single method and has a certain engineering significance.
综合分析方法能克服单一方法的多解性,是水库渗漏探测的有效方法,具有一定的工程意义。
The top-level code for Electric XML (EXML) in Listing 8 is the simplest of any of these examples, with a single method call each for reading and writing the document.
清单8中electricXML (EXML)的顶级代码是任何这些示例中最简单的一个,通过单一方法调用就可以读取和编写文档。
The event-driven approach is beneficial because it reduces the amount of work that must be done up front, in a single method, to prepare for the rendering of the view.
事件驱动方法的优点是可以减少单个方法在呈现视图时需要预先做的工作。
This constructor provides a mechanism to configure the workflow run-time engine using a single method call for hosts that do not use an application configuration file.
此构造函数提供了一个机制,可对不使用应用程序配置文件的宿主使用单一方法调用来配置工作流运行时引擎。
This constructor provides a mechanism to configure the workflow run-time engine using a single method call for hosts that do not use an application configuration file.
此构造函数提供了一个机制,可对不使用应用程序配置文件的宿主使用单一方法调用来配置工作流运行时引擎。
应用推荐