This works well for single method changes or class extensions to already existing libraries.
这种模式非常适合单个方法的修改或者是在已有类库的基础上对类进行扩展。
A server validator must implement the IServerValidator interface, which defines a single method, validate.
服务器验证器必须实现IServerValidator接口,它设置了一个单一方法,即validate。
The ServiceUI class provides a single method to display the printer selection dialog
ServiceUI类提供一个单独的方法来显示打印机选择对话框
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 Command interface defines only a single method, called execute, that accepts a single parameter, called CommandModel.
Command接口仅仅定义了一个单独的方法,叫做execute,这个方法接受一个单独的操作,叫做CommandModel。
The ClassTransformer's single method - transform - is passed the class to be redefined and a byte array containing the class's bytecode.
ClassTransformer的单个方法—transform—被传入要重定义的类和包含类的字节码的字节数组。
Data link relies on a single method, link, to tie together input elements on a form and the target object.
Datalink通过一个名为link的方法,来将表单中的input元素和目标对象绑定在一起。
One final comment about OSR: it is usually only a performance problem in benchmarking, when programmers are lazy and put everything in a single method such as main.
关于OSR的最后一点提示:通常,只有程序员很懒惰,把所有东西都放在一个方法(比如main)中时,它才会给基准测试带来性能问题。
A single method may, depending on the arguments, either retrieve (access) data or change (mutate) data.
取决于参数,同一个方法可以检索(access)数据,或者更改(mutate)数据。
A CharSequence provides only a single method for accessing its characters: charAt (x).
CharSequence只提供了一个方法来访问它的字符:charat (x)。
Similarly, the ChannelOutput interface consists of a single method called write(Object o).
类似地,ChannelOutput接口也只有一个方法,叫作write(Objecto)。
The interface to read from a channel is called ChannelInput and consists of a single method called read .
从通道读取对象的接口叫作ChannelInput,它只有一个方法,叫作read 。
A deserializer implements org.apache.soap.util.xml.Deserializer and realizes a single method.
反序列化器实现or g . apache . soap . ut il . xml . Deserializer并实现一个方法。
A serializer implements org.apache.soap.util.xml.Serializer and realizes a single method.
序列化器实现or g . apache . soap . ut il . xml . Serializer并实现一个方法。
By using the value object directly, instead of repeatedly using the bean's remote interface, we can reduce our RMI traffic to a single method invocation.
通过直接使用值对象,而不是反复使用bean的远程接口,我们可以将R mi通信减少到一次方法调用。
This interface defines a single method, namely public void event (CometEvent event) to implement in our servlet. Listing 1 shows the two main methods of this servlet.
此接口定义了在我们的Servlet中实现的名为publicvoidevent (CometEventevent)的单个方法。
The Executor interface has a single method - execute - that accepts the Runnable parameter.
Executor接口有一个execute方法,它接受Runnable参数。
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) 对的类型进行参数化。
A single method can no longer produce reliable estimates across every step in the process.
单一的评估方法不可能在过程的每一步产生可靠的评估结果。
But in essence, an event is still connected to a single method, which might then need to act on various widgets.
但是本质上,事件仍旧被连接到单个方法上,随后可能需要作用于各种窗口构件。
Parents may find that the more they rely on one single method, the less effective that method becomes.
父母们也许会发现他们越依赖单一的方法,那个方法就越没那么有效。
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").
为了提高性能,您可能希望抽取每个模型属性的代码放到它自己的方法中(或者带有“开关”的单个方法)。
Interfaces should be small, preferably containing a single method.
接口应该小,最好只包含一个方法。
One interface is provided for each type of channel exit, and each interface provides a single method to be implemented.
一个接口提供给每种通道出口,每个接口都提供一个需要实现的方法。
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.
事件驱动方法的优点是可以减少单个方法在呈现视图时需要预先做的工作。
Instead, you define a single method, named after the member, that you want to allow for.
相反,只需要定义一个方法,以成员的名称命名它。
JiBX extensively USES this technique of combining multiple parser operations in a single method.
JiBX广泛地使用将多个解析器操作组合在单一方法中的这种技术。
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 DictionaryIO class has a single method, export , which expects a Dictionary object and USES it to output a dummy message.
dictionaryio类具有单个方法export,它接受一个Dictionary对象,并使用它来输出假消息。
The example shows an interface called PersonProvider, which declares a single method.
该示例显示了一个名为PersonProvider的接口,该接口将声明单个方法。
应用推荐