非公共类中的一些方法,它们永远也不会被实际调用,只是为了满足某个接口契约而必须实现。
Methods inside nonpublic classes that are never actually invoked but must be implemented in order to satisfy the contract of an interface.
我喜欢编写新的代码,但也喜欢采用一些现有的代码,以某种方法将其简化或将重复的代码提取到一个公共类中。
I'd rather write new code, but I enjoy taking some existing code and reducing complexity in a method or extracting duplicate code into a common class.
然而,这个命名糟糕的公共类在代码中保留的时间越久,则相关的使用也会越来越多,改变起来就越来越困难。
However, the longer the badly named class remains in the code base the more prevalent its usage becomes, and the bigger the task of changing it.
修改catalina .properties文件,以使整个cloudscape库都包含在公共类路径中。
The catalina.properties file is modified so that the entire Cloudscape library is included in common classpath.
修改 catalina.properties文件,以使整个Cloudscape库都包含在公共类路径中。
The catalina.properties files is modified so that the entire Cloudscape library is included in common classpath.
更好的解决方案是将包结构分解成两个源目录,一个负责客户端代码,一个负责服务器端代码,然后将公共类复制到两个目录中。
A more elegant solution might be to split package structure across two source directories for client-side and server-side code and to duplicate common classes into both directories.
喜欢使用ISO 9000一类商业评判标准化措施的印度,已经发明了针对公共部门的评判标准Sevottam,意为“最高级别的”。
India, which has fallen in love with standardised measures of business performance, such as ISO 9000, has invented one for the public sector, called Sevottam, which means "the highest".
这些结构支持面向对象式的封装,即本质上只有类或者Trait的公共抽象会被暴露出来,内部实现则被隐藏于视界之下。
These constructs support the object-oriented form of encapsulation, where only the essential public abstraction of a class or trait is exposed and implementation information is hidden from view.
图22:分析用例之中具体的和公共的实现类。
Figure 22: Analyzing specific and common implementation classes among use cases.
做到这一点的最佳方法是在一个小的公共基类的集合中封装特定于Domino的实现细节。
The best way to do this is to encapsulate the Domino specific implementation details in a small set of common base classes.
在服务类中实现作为公共实例方法的API方法。
Implement the API methods in the service class as public instance methods.
在控制器类中实现作为公共实例方法的API方法。
Implement the API methods in the controller class as public instance methods.
例如,假设您希望利用反射显示给定类的所有公共方法。
For example, say that you want to display all of the public methods of a given class using reflection. Listing 7 shows an example.
如果包访问不利于对象间的通信,就需要向类中添加更多的公共方法。
If package access prevents objects from communicating, add more public methods to the classes.
我们实现这个类来提供一些公共方法并隐藏SNMP接口的细节。
We implemented this class to provide some common methods and to hide the details of the SNMP interface.
API方法实现是作为公共实例方法定义在控制器类中的。
The API method implementations are defined in the controller class as public instance methods.
整个应用程序架构中用于启动、提交和回滚事务的惟一方法就是api层的域类中包含的公共方法。
The only methods in the entire application architecture that start, commit, and roll back a transaction are public methods contained in API layer's domain classes.
我承认我没有系统地使用自动化测试,这是因为我的经验表明,对于那些其公共接口不经常更改的类,自动化测试是最有效的。
I confess that I do not use automated tests systematically because my experience has been that they are most effective with classes whose public interface does not change often.
正式的、可外部配置的“工具箱”,可以增加在模板中使用的自定义工具(这里讲的工具只是具有公共方法的已编译的类)。
A formalized, externally configurable "toolbox" for adding custom tools that can be used by the template (tools in this sense are just compiled Java classes that have public methods).
这意味着类元素的所有的私有成员都将被首先转储,然后依次是被保护的成员和公共的成员。
This means that all the private members of the class element are dumped first, followed by protected and public, respectively.
模块1的特定于模块的类加载器找到对另一个模块(公共对象库)的引用并加载那个模块。
The module-specific class loader for module 1 finds a reference to another module (the common objects library) and loads that module.
当模块2的特定于模块的类加载器加载它的模块的代码并找到对另一个模块(同样是公共对象库)的引用时,它加载那个模块。
When then the module-specific class loader for module 2 loads its module's code and finds a reference to another module (again, the common objects library) it loads that module.
与booksearch类中的公共方法类似,这些方法的代码如下。
As for the public methods in our BookSearch class, the code for these methods is as follows.
通过直接调度方法,可以把API定义类与控制器类绑定在一起,并且在控制器类中实现作为公共实例方法的API方法。
With the direct dispatching approach, the API definition class is attached to the controller class, and the API methods are implemented in the controller class as public instance methods.
注意,不必要注册类的全部公共属性和方法——可以从中选择想向容器公开的那些公共属性和方法。
Notice that you're never required to register all the public properties or methods of the class — you can choose which ones you want to expose to the container.
我对公共政策学院寄予厚望——它有望成为这一类学院之中的翘楚。
I have great hopes for the School of Public Policy. It has the potential to become the leading institution of its kind.
由相同的研究人员所作的一项跟踪调查则发现,志怪小说是Leeville市每个公共图书馆外借频率最高的一类图书。
A follow-up study by the same researchers found that mystery novels were the most frequently checked out books from each of the public libraries in Leeville.
所有自定义JMS数据绑定都具有一个称为AbstractJMSDataBindingImpl的公共超类,这个类实现了一些公共的功能,比如,进行异常处理的方法。
All the custom JMS data bindings have a common super class, called AbstractJMSDataBindingImpl, which implements some common functionality; for example, methods for exception handling.
在与本文相关的解决方案中,您将看到每个操作的公共代码都被移到了抽象超类中。
In the solution associated with this article, you'll see that the common code for each of the actions has been moved to an abstract superclass.
insight应用将订阅源分为四大类:社会化媒体、公共关系、营销和品牌,以及广告。
The M.insight application sorts the feeds into four main categories: social media, public relations, marketing and branding, and advertising.
应用推荐