• Do declare static classes as sealed and abstract, and add a private instance constructor, if your programming language does not have built-in support for static classes.

    如果编程语言没有对静态类的内置支持,则应将静态类声明为密封的和抽象的,并添加一个私有实例构造函数。

    youdao

  • If the class has a no-args constructor, and you want to use that constructor and then immediately invoke a single instance method on it, there's a shortcut.

    如果该类具有一个无参构造函数,您想使用这个构造函数,然后立即在其上调用一个实例方法,那么有一种捷径。

    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

  • The other way to say it is, never define a global (static global) instance of a class whose constructor or destructor may throw exceptions.

    换一种说法就是永远都不要为那些其构造函数和析构函数可能抛出异常的类定义全局(静态全局)实例。

    youdao

  • It also creates a constructor that sets this instance variable.

    同时也创建了用于设置这个实例变量的构造函数。

    youdao

  • If a class contains only static members, remember to mark the class as static or seal the class (NotInheritable) and give the class a private constructor to avoid instance creation.

    如果类只包含静态成员,则要记得将该类标记为静态,或者密封该类(NotInheritable),并且还要为该类提供一个私有构造函数,以避免实例创建。

    youdao

  • You start by filling out the instance variables, constructor, and some helper methods that are not specific to Lotus Sametime.

    首先需要填充实例变量、构造器和一些帮助器方法,这些内容并非特定于Lotus Sametime。

    youdao

  • If a relationship is defined, then the class instance (Resource) being protected must be passed into the ResourcePermission constructor.

    如果定义了一个关系,那么必须把受保护的类实例(Resource)传递到ResourcePermission构造函数中。

    youdao

  • You create the DeviceAdapterAgent instance and pass those configuration properties along to the constructor (Listing 2).

    您将创建DeviceAdapterAgent实例并将这些配置属性一起传递到构造函数(清单2)。

    youdao

  • In Listing 3, you can see that the CustomerLister constructor accepts an instance of a class that implements the CustomerFinder interface.

    在清单3中,可以看到CustomerLister的构造函数接受一个实现CustomerFinder接口的类的实例。

    youdao

  • The prototype for all RequiredValidator objects is a Validator instance, which has no properties because no parameters are passed to the Validator constructor.

    所有RequiredValidator对象的原型都是一个Validator实例,该实例没有任何属性,因为没有参数传递给Validator构造函数。

    youdao

  • This constructor USES an instance of the PackageBuilder class to parse and compile the rules contained in the source file.

    该构造函数使用packagebuilder类的实例解析和编译源文件中包含的规则。

    youdao

  • Next, an instance of the Services_oEmbed class is initialized, with the class constructor passed two arguments: the YouTube URL and an array of options.

    接下来,初始化services_oembed类的一个实例,类构造函数被传递两个参数:YouTubeURL和一组选项。

    youdao

  • If you want to use this tree-table model, you'll need to create an instance of it and then pass that instance to the JXTreeTable constructor, like so.

    如果您想使用这个树形表模型,您将需要创建一个它的实例,然后将实例传递到JXTreeTable构造器,像这样。

    youdao

  • As a corollary, if you instantiate SOAPMappingRegistry with its no-arg constructor, a 2001 namespace-aware instance is returned.

    按照推理,如果您用SOAPMappingRegistry的无参数构造函数对它进行实例化,将返回一个具有2001名称空间意识的实例。

    youdao

  • The @Name annotation tells Seam to use the default constructor of a class to create a new instance.

    @Name注释告知Seam使用默认的类构造函数创建新实例。

    youdao

  • Each holder class has a constructor from an instance, a default constructor, and has a public instance member (value), which is the typed value.

    每个holder类都有一个来自实例的构造函数,一个默认的构造函数,以及一个公有的实例成员value,它是一个有类型的值。

    youdao

  • This class in its constructor initializes an instance of the org.directwebremoting.WebContext class provided by DWR, and then registers itself with StockQuoteGenerator's list of listeners.

    此类在其构造函数中初始化DWR提供的org.directwebremoting.WebContext类的实例,然后向StockQuoteGenerator's 侦听器列表注册自身。

    youdao

  • Some generate code such that instance becomes non-null only after the constructor executes.

    一些生成了代码,从而只在构造函数执行后使instance成为非null。

    youdao

  • The constructor of BookWebApp gets the singleton instance of the book service implementation object.

    BookWebApp的构造函数获取这个图书服务实现对象的singleton实例。

    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

  • Create a new instance of the RestTemplate using the constructor with the default Settings.

    使用构造函数,利用默认设置,创建RestTemplate的一个新实例。

    youdao

  • We have first created a myObjDef constructor below, and immediately created a new instance of myObjDef using the new operator.

    我们先在下面创建了一个myObjDe f构造器,并立即用新的操作符创建了一个新的myobjdef实例。

    youdao

  • The problem with this line of code is that the variable instance can become non-null before the body of the Singleton constructor executes.

    这行代码的问题是:在Singleton构造函数体执行之前,变量instance可能成为非null的。

    youdao

  • Listing 6 shows that the UserSearch bean is an instance of a class named org.acegisecurity.ldap.search.FilterBasedLdapUserSearch, whose constructor takes three parameters.

    清单6展示了UserSearchbean是or g . acegisecurity . ldap . search .filterbasedldapusersearch类的一个实例,该类的构造函数具有三个参数。

    youdao

  • Listing 2 shows the inheritance tree (with the instance counter and constructor code removed for clarity).

    清单2显示了这个继承树(为了清晰起见,删除了实例计数器和构造函数代码)。

    youdao

  • This behavior is referred to in the DI world as constructor injection, because the instance is passed through one of the constructors.

    这个行为在DI世界中称作构造函数注入,因为实例是通过一个构造函数传递的。

    youdao

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

    例如,表示非空容器的任何类在构造函数中必然使用表示其元素的参数。

    youdao

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

    例如,表示非空容器的任何类在构造函数中必然使用表示其元素的参数。

    youdao

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

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

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