• Thus, you should never have a no-argument constructor for an immutable class.

    因此永远都不该不可变提供一个无参数构造函数

    youdao

  • Adding a constructor or two for each exception class rarely takes more than a few minutes per exception.

    对于异常每个异常添加一个两个构造器所花费时间很少不超过分钟

    youdao

  • For instance, any class representing a non-empty container would naturally take arguments representing its elements in the constructor.

    例如表示容器任何在构造函数必然使用表示元素参数

    youdao

  • The most important thing to note when extending JAAS for class instance-level authorization is that the permission implementation class must have a three-parameter constructor.

    实例级授权扩展JAAS注意重要的一点许可权实现必须一个带三个参数的构造函数

    youdao

  • For classes with few constructor arguments or if you are creating many objects of the same class, this is viable but soon becomes untidy for classes whose constructors have lots of arguments.

    对于带有少数几个构造方法参数或者如果创建同一个多个方法可行的,但是对于构造方法具有大量参数的类来说,很快就会变得杂乱无章

    youdao

  • This instantiation involves the default constructor for the class being called, with the injection of dependencies happening afterwards.

    这种实例化涉及到调用默认构造函数随后还要注入依赖关系

    youdao

  • Constructor provides the name for the Class and initializes the properties which can be different in every instance of the Class.

    构造器提供一个名称初始一个类实现属性

    youdao

  • These classes define methods for modifying all aspects of the item represented by the class, including the actual bytecode body of a method or constructor.

    这些定义修改它们所表示对象所有方法的方法,包括方法或者构造函数中的实际字节码内容

    youdao

  • Let's start with the constructor for the handler class (see Listing 3) to see the how the page has been retrofitted for localization.

    我们从处理程序构造函数开始(参见清单3)看看如何为本地化翻新页面

    youdao

  • This type actually defines the signature of a constructor for the specified class and a matching sequence of values.

    类型实际定义指定用于匹配序列构造器签名

    youdao

  • Notice that the class name matches the filename, and that you have to have a constructor for your class.

    请注意文件名匹配必须类提供一个构造函数

    youdao

  • The constructor of the class extracts the JNDI name and the unique key, and then checks the Distributed Map for the data.

    这个构造函数提取JNDI唯一密钥检查分布式映射缓存中的数据。

    youdao

  • The first method is one that doesn't even appear in the source code for my template class back in Listing 1, the default constructor for the class.

    清单1中的模板源代码是类默认构造函数第一方法没有出现其中

    youdao

  • You do not code a class definition for them, nor do you call a constructor to create them.

    不能通过代码SDO编写一个定义也不能调用构造函数创建它们

    youdao

  • For example, you could initialize such resources in the constructor of the SubTask class.

    例如可以subtask构造函数初始化这类资源

    youdao

  • Note that method changes to the class are irrelevant to db4o because it doesn't store methods or method implementations as part of the stored object data, and ditto for constructor refactorings.

    注意方法更改db4o无关因为方法方法实现作为存储对象数据一部分对于构造函数的重构也是如此。

    youdao

  • It might be that the whole trait should actually be a class instead, so you can define a constructor for it that initializes the field.

    这样也许应该整个trait实际上应该这样才能定义一个构造函数初始化这个字段。

    youdao

  • In line 14, a test case must have a single string parameter constructor that passes the argument to its parent class (TestCase) for the purpose of displaying the test case name in a log.

    第十四中,为了日志显示这个测试名称个测试用例必须一个可以将自变量传递(TestCase)的专门的参数构造器

    youdao

  • To demonstrate how coverage tracking works, I'm going to go back to the constructor for the StringArray class I've used throughout this article.

    为了演示复盖跟踪工作原理重新把目光投向我在本文使用stringarray构造函数

    youdao

  • This constructor lets you specify the priority, memory sizes, and period for a thread, along with the class that represents the thread to be run (a class that extends PeriodicThread).

    构造函数能够指定优先级内存大小线程周期表示运行线程的(扩展periodicthread的类)。

    youdao

  • The constructor for the file_lock class accepts the name of the file to be locked, and it's important to open the file before lock is invoked; otherwise, an exception will be thrown.

    file_lock构造函数接受锁定文件名称一定要在调用lock之前打开文件;否则抛出异常

    youdao

  • Figure 1 shows a constructor with two arguments of type Point and a destructor modeled for the DrawingSurface class of the sample application used here for illustration purposes.

    1展示示例应用程序(在这里用于举例)drawingsurface建模带有两个Point类型参数构造方法一个析构方法

    youdao

  • 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.

    Field本身相当简单几乎包含这个字段实例变量访问这些变量的方法toString方法一个标准构造方法

    youdao

  • For details on how each instance variable is computed, you can look at the constructor method for the class where all these values are derived.

    关于如何计算每个实例变量详细信息可以查阅该类构造函数方法所有这些源自那里

    youdao

  • You can just use a constructor for the appropriate class directly, without going through a factory class.

    可以仅仅直接使用相应构造函数不用通过工厂类。

    youdao

  • There are two tests displayed; the first represents the successful execution of the constructor for our class, and the second is the execution of the actual method call.

    这里显示两个测试第一个展示构造成功执行第二真实方法调用执行。

    youdao

  • The constructor and destructor of the queue class are responsible for the creation and destruction of the mutex, as shown in Listing 1.

    队列构造函数析构函数负责创建销毁互斥锁清单1。

    youdao

  • As for followpos , I have added an accessor and new code in the class constructor.

    至于followpos,类构造器中添加一个取值(方法)代码

    youdao

  • To avoid this problem, you can create an interface (for example, Vehicle) and have your FrogMan class accept the Vehicle as a constructor argument, as in Listing 3.

    为了避免这个问题可以创建接口(例如vehicle),使frogman接受Vehicle作为构造函数参数清单3所示。

    youdao

  • To avoid this problem, you can create an interface (for example, Vehicle) and have your FrogMan class accept the Vehicle as a constructor argument, as in Listing 3.

    为了避免这个问题可以创建接口(例如vehicle),使frogman接受Vehicle作为构造函数参数清单3所示。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定