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.
遵循单一责任原则的最简单办法就是不断地问自己是不是这个类的每一个方法和操作都与这个类的名称直接相关。
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。
Using the single stream of data method applied in TCP, there is an added delay when messages are lost or sequence errors occur.
如果使用TCP中用到的单一数据流方法,当消息丢失或者发生序列错误时,会导致更多的延迟。
First, you design services that are common to all members of the product line, using the method described in the design section for single systems.
首先,你要使用针对单一系统的设计部分中描述的方法,设计产品线的所有成员共有的服务。
First, you identify candidate services that are common to all members of the product line, using the method described in the analysis section for single systems.
首先,你要使用针对单一系统的分析部分中描述的方法,确定产品线的所有成员共有的候选服务。
The drift about the evaluation conclusion of single method is studied inorder to offer the experiment basis for combination evaluation.
研究单一方法评价结论的漂移性,以便为组合评价提供实验依据。
Of course in the case of replacing a single letter, Groovy offers a more concise replace method.
当然,在替换一个单个字母时,Groovy提供了一个更加简洁的替换方法。
The ServiceUI class provides a single method to display the printer selection dialog
ServiceUI类提供一个单独的方法来显示打印机选择对话框
Even when a program contains only a single thread running on a single processor, a synchronized method call is still slower than an unsynchronized method call.
即使一个程序只包括一个在单一处理器上运行的单线程,一个同步的方法调用仍要比非同步的方法调用慢。
When SOAP is used to perform an RPC call, the Body contains a single element that contains the method name, arguments, and Web service target address.
当SOAP被用于执行一个RPC调用时,Body包含一个单独元素,这个元素包含方法名、参数和Web服务的目标地址。
The simplest method of organization is to put all the software packages in a single repository.
最简单的组织方法是将所有软件包放置在一个单独的资料库中。
The results show that the stable downward continuation program has higher accuracy and stability than other single method.
结果表明,稳定下延方案较单项的其他下延方法具有更高的精度和稳定性。
The one method, manufacture, returns a PersistenceManager instance from a single instance of a PersistenceManagerFactory.
manufacture方法从PersistenceManagerFactory的单个实例返回一个PersistenceManager 实例。
This method would provide a single point where integration for all QuickPlaces that exist on the server can be configured.
这种方法提供对存在于服务器上的所有QuickPlace的集成进行配置的单一位置。
Bridging (connecting Ethernet segments so that they appear to be a single Ethernet segment) is currently the best method of connecting a container to the network.
目前,桥接(连接多个以太网区段,使它们成为一个单独的以太网区段)是将一个容器连接到网络的最佳方法。
Summary: as we determined last week, UML activity diagrams document the logic of a single operation or method, a single use case, or the flow of logic of a business process.
简介:正如我们上周已确定的那样,UML活动图记录单个操作或方法的逻辑、单个用例或商业过程的逻辑流程。
Some server managers prefer the "one server, one function" method, so a single server runs a single application.
有些服务器管理人员更喜欢“一个服务器,一个功能”的方法,因此单个服务器运行单个应用程序。
In such cases, you can render the single quote harmless by using a regular expression or the String.Replace method to replace each instance of the single quote with two single quotes. For example.
在这种情况下,可以通过使用正则表达式或者String . Replace方法将每个单引号实例替换为两个单引号,使单引号无害。
The ClassTransformer's single method - transform - is passed the class to be redefined and a byte array containing the class's bytecode.
ClassTransformer的单个方法—transform—被传入要重定义的类和包含类的字节码的字节数组。
In the OTMPS service facade, we wrapped all rules in a single service (OTMPSRules), where each rule is exposed as a method of the service, as shown in Listing 3.
在OTMPS服务facade中,我们将所有规则都包装在了一个单独的服务(OTMPSRules)中,其中将每种规则都发布成该服务的方法,如清单3所示。
This method is called with parameters such as an account holder name and the current stock price of the single stock that this account holder owns.
调用这个方法时使用的参数是帐户持有人姓名,以及这个帐户持有人拥有的单只股票的当前价格。
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输入参数和方法返回值需要进行很好的选择。
Marx's research method is not a single method, but the total of a series of methods of different levels.
马克思的研究方法不是一个单独的方法,而是一系列各种层次的方法的总和。
Similarly, the ChannelOutput interface consists of a single method called write(Object o).
类似地,ChannelOutput接口也只有一个方法,叫作write(Objecto)。
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 。
Data link relies on a single method, link, to tie together input elements on a form and the target object.
Datalink通过一个名为link的方法,来将表单中的input元素和目标对象绑定在一起。
Association is performed from the RP code with a single call to the associate method on ConsumerManager, as shown in Listing 3.
关联是从RP代码中执行的,仅需调用ConsumerManager上的associate方法即可,如清单3所示。
Association is performed from the RP code with a single call to the associate method on ConsumerManager, as shown in Listing 3.
关联是从RP代码中执行的,仅需调用ConsumerManager上的associate方法即可,如清单3所示。
应用推荐