A private constructor is a special instance constructor.
私有构造函数是一种特殊的实例构造函数。
Constructor call is valid only as the first statement in an instance constructor.
构造函数调用仅作为实例构造函数中的第一条语句有效。
Searches for a public instance constructor whose parameters match the types in the specified array.
搜寻其参数符合在指定阵列中的型别的公用执行个体建构函式。
The compiler processes object initializers by first accessing the default instance constructor, and then by processing the member initializations.
编译器进程的第一个访问默认实例的构造函数,然后通过处理成员初始化对象初始值设定项。
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.
如果编程语言没有对静态类的内置支持,则应将静态类声明为密封的和抽象的,并添加一个私有实例构造函数。
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.
如果该类具有一个无参构造函数,您想使用这个构造函数,然后立即在其上调用一个实例方法,那么有一种捷径。
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.
关于如何计算每个实例变量的详细信息,可以查阅该类的构造函数方法,所有这些值都源自那里。
Note that the site's constructor accepts a designer host instance.
请注意,站点的构造函数接受设计器宿主实例。
The other way to say it is, never define a global (static global) instance of a class whose constructor or destructor may throw exceptions.
换一种说法就是永远都不要为那些其构造函数和析构函数可能抛出异常的类定义全局(静态全局)实例。
It also creates a constructor that sets this instance variable.
同时也创建了用于设置这个实例变量的构造函数。
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),并且还要为该类提供一个私有构造函数,以避免实例创建。
You start by filling out the instance variables, constructor, and some helper methods that are not specific to Lotus Sametime.
首先需要填充实例变量、构造器和一些帮助器方法,这些内容并非特定于Lotus Sametime。
If a relationship is defined, then the class instance (Resource) being protected must be passed into the ResourcePermission constructor.
如果定义了一个关系,那么必须把受保护的类实例(Resource)传递到ResourcePermission构造函数中。
You create the DeviceAdapterAgent instance and pass those configuration properties along to the constructor (Listing 2).
您将创建DeviceAdapterAgent实例并将这些配置属性一起传递到构造函数(清单2)。
In Listing 3, you can see that the CustomerLister constructor accepts an instance of a class that implements the CustomerFinder interface.
在清单3中,可以看到CustomerLister的构造函数接受一个实现CustomerFinder接口的类的实例。
This constructor USES an instance of the PackageBuilder class to parse and compile the rules contained in the source file.
该构造函数使用packagebuilder类的实例解析和编译源文件中包含的规则。
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和一组选项。
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构造器,像这样。
Instead, you pass the table instance in the TableColumn constructor.
相反,您把表实例传入TableColumn构造器中。
As a corollary, if you instantiate SOAPMappingRegistry with its no-arg constructor, a 2001 namespace-aware instance is returned.
按照推理,如果您用SOAPMappingRegistry的无参数构造函数对它进行实例化,将返回一个具有2001名称空间意识的实例。
The @Name annotation tells Seam to use the default constructor of a class to create a new instance.
@Name注释告知Seam使用默认的类构造函数创建新实例。
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,它是一个有类型的值。
The code shown in Listing 2 gets the constructor and USES it to create an instance of the TwoString class using Strings "a" and "b".
清单2中的代码获得构造函数并使用它来创建使用String s “a ”和“ b ”的twostring类的一个实例。
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 侦听器列表注册自身。
Some generate code such that instance becomes non-null only after the constructor executes.
一些生成了代码,从而只在构造函数执行后使instance成为非null。
The constructor of BookWebApp gets the singleton instance of the book service implementation object.
BookWebApp的构造函数获取这个图书服务实现对象的singleton实例。
Create a new instance of the RestTemplate using the constructor with the default Settings.
使用构造函数,利用默认设置,创建RestTemplate的一个新实例。
We have first created a myObjDef constructor below, and immediately created a new instance of myObjDef using the new operator.
我们先在下面创建了一个myObjDe f构造器,并立即用新的操作符创建了一个新的myobjdef实例。
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类的一个实例,该类的构造函数具有三个参数。
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类的一个实例,该类的构造函数具有三个参数。
应用推荐