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 interface for the service describes a single method
对于服务的接口描述了一个简单的方法
The ServiceUI class provides a single method to display the printer selection dialog
ServiceUI类提供一个单独的方法来显示打印机选择对话框
它只有一个convert方法。
In its place two interfaces, each with a single method, may be appropriate.
取而代之的是两个接口,每一个都带了单独的方法,这样会更合适些。
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) 对的类型进行参数化。
This simple interface has a single method and a single property.
这个接口非常简单,只有一个方法和一个属性。
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.
但是本质上,事件仍旧被连接到单个方法上,随后可能需要作用于各种窗口构件。
You achieve this by writing a single method to change the displayed text.
通过编写一个方法来修改显示的文本,可以实现这一要求。
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").
为了提高性能,您可能希望抽取每个模型属性的代码放到它自己的方法中(或者带有“开关”的单个方法)。
This needs a single method call.
这需要单个方法调用。
The rule class is quite simple, typically containing only a single method.
规则类是十分简单的,典型情况下只包含一个方法。
Interfaces should be small, preferably containing a single method.
接口应该小,最好只包含一个方法。
应用推荐