我们不能实例化一个抽象类,即使它们的字段和方法都是具体的。
We can't instantiate instances of abstract classes, even when all their field and method members are concrete.
客户类中的第二个find方法是findAllOrder(),它使用了一个包含搜索到的对象类型和该实例的客户ID 的密钥。
The second find method in the customer class, findAllOrder(), uses a key with the searched object type and the customer ID of this instance.
这个方法接受要显示的文本和一个默认的TextPresentation实例。
This method receives the text to be presented and a default TextPresentation instance.
使用的方法是导出和导入数据库,因为只有一个Informix实例。
The method used is exporting and importing the database, since there is only one Informix instance.
此方法执行一个基本的检查(以确保在继续之前已经设置了App ID)、初始化ui资源和初始化facebook会话实例(参见清单5)。
This method performs a basic check to make sure that the App ID is set before proceeding, initializes the UI resources, and initializes the Facebook session instance (see Listing 5).
最后,提供一个方法来设置和检索由factory生成的实例的URI (uniformresourceindicator,统一资源标识,通常称为url)解析器。
Finally, a method is provided to set and retrieve the URI (a uniform resource indicator, often a URL) resolver for the instances generated by the factory.
这种方式非常简便:实例化一个TextTestRunner类型的对象,在其中添加测试和输出器,然后调用run方法。
The pattern has been easy enough: instantiate an object of type TextTestRunner, add tests and the outputter to it, and then invoke the run method.
首先,脚本包含了 XML_Query2XML和MDB2类文件,然后通过它的factory()方法初始化了一个 MDB2 抽象层实例。
To begin, the script includes the XML_Query2XML and MDB2 class files, and then initializes an instance of the MDB2 abstraction layer through its factory() method.
浏览org. hsqldb . ut il . databasemanager源代码之后,我们发现实例化和初始化一个JDBC连接很容易,但是所必需的方法不是公共的。
Browsing the org.hsqldb.util.DatabaseManager source code, we find that it could be easily instantiated and initialized with a JDBC connection, but the required methods are not public.
要实现此目的,可以向之前所创建的类中添加离线服务帮助器的一个实例和一个初始化方法,如清单2所示。
To do this, add an instance of the offline service helper and an initialization method to the class you created previously as shown in listing 2.
我当然不会违背每一个实例中的应用程序代码和设计,在本系列的第3部分中,我将展示监控数据库以进行性能统计的方法。
I would certainly not side against application code and design in every instance, and in Part 3 of this series, I present methods of monitoring databases for performance statistics.
在每一个实例下,我运行一个简单的程序,测定循环调用一个方法10,000,000次所需的运行时间,我调用了同步和非同步两个版本,并比较了结果。
In each case, I ran a simple program that measured the run time of a loop calling a method 10,000,000 times, calling both a synchronized and an unsynchronized version, and compared the results.
它列举了一些不同的实例,不同的平台和不同的jvm下一个同步的方法调用相对于一个非同步的方法调用的损失。
It compares the cost of a synchronized method call to an equivalent unsynchronized one in several different cases and on several different platforms and JVMs.
我认为这事实上增加了方法的可读性:即使粗略的浏览一个方法,也不会有混淆局部变量和实例变量的机会。
I find that this actually increases the readability of methods: there is no chance of confusing local variables and instance variables when glancing through a method.
在我们的示例中,您能找到一个泛型函数,此函数能创建XMLHttpRequest实例和调用实例的open和send方法。
In our case, you could find a generic function that creates the XMLHttpRequest instance and calls its open and send methods.
解决该问题的一个方法是采用实例和纹理数组。
One way to combat these issues is to use Instancing and Texture Arrays.
还好,DOH为注册测试提供了一个很好的框架和方法,这些测试一般需要Web浏览器加载一个HTML文件,该文件用于实例化要测试的小部件。
The great news is that the DOH provides a good framework and method for registering tests that require a Web browser to load an HTML file that instantiates the widgets to be tested.
MessageHelper类的这一方法与WebServer是在同一个虚拟机中执行的——在本例中,就是执行Jetty实例和ActiveMQ的那个虚拟机。
The methods on the MessageHelper are executed in the same virtual machine (VM) as the web server—in this case, the Jetty instance that comes with ActiveMQ.
Field类本身相当简单;它几乎包含了这个字段的实例变量,访问这些变量的方法,一个toString方法,和一个标准的构造方法。
The field class itself is pretty simple; it pretty much consists of the instance variables of the field, accessor methods for those instance variables, a toString method, and a normal constructor.
第一个也是最重要的新特性是针对类的方法和实例变量的访问保护 ——public、protected 和 private关键字。
The first and most important addition was access protection for methods and instance variables on classes -- the public, protected, and private keywords.
本文简要介绍了数据挖掘技术的基本原理和主要方法,以及粗糙集理论的基本原理,并给出了一个利用数据挖掘技术对肺部肿瘤进行诊断评价的应用实例。
This paper briefly introduces the principles and methods of the data mining and the rough set theory, and gives an example on the diagnosis and evaluation of the lung tumor.
您将把对象设计为一个单子实例 (singleton)(这个设计模式将把这个对象限制在一个单个实例中)并使用合适的检索和存储方法对高速缓存进行操作。
You will design the object as a singleton (this design pattern will limit this object to a single instance) and have the appropriate retrieve and store methods to manipulate the cache.
讨论了一种利用噪声测量的方法来确定毫米波段混频器的变频损耗和噪声温度的一个实例。
An example for measuring the conversion loss and noise temperature of mixers in millimeter wave band by using the noise measurement method is discussed in this paper.
使用自定义的类。创建的所有设置一个类(一个更好的方法)。使用一个单一的静态类实例的访问设置。你可以序列化和反序列化的类。
Use custom class. Create a class with all settings (a better approach). Use a single static instance of the class to access settings. You can serialize and deserialize that class.
在对控制访问列表的作用和规则作了概括性介绍后,给出了一个应用的实例,具体分析了访问控制列表的使用方法,并对于它在网络安全中的应用给了一些建议。
This paper introduces functions and rules of access control list, gives an instance to study how to use ACL in a real network environment, and ends with some advice on network security.
提出了一个基于实例的软件数据流图模块划分的方法和实现过程。
The paper presents a method and implementation of a case-based module division to software data flow diagram.
我觉得这实际上增加了方法的可读性:当浏览一个方法时,在局部变量和实例变量之间不会出现令人费解的情况。
I find that this actually increases the readability of methods: there is no chance of confusing local variables and instance variables when glancing through a method.
给出了设计可靠性的建模方法和用数字仿真评估设计可靠性的模型方法和仿真过程并给出了一个典型电路的仿真实例。
The model and method for estimating circuit design reliability by using digital simulation are established. A simulation example of the typical fuze circuit is given in this paper.
最后给出一个实例对模型和方法进行验证。
Finally, the model and method are illustrated through an application case.
最后给出一个实例对模型和方法进行验证。
Finally, the model and method are illustrated through an application case.
应用推荐