Use the code in listing 2 for the constructor routine.
使用清单2的代码实现构造器例程。
The first argument to the constructor is the URI of the data source.
构造函数的第一个参数是数据源的URI。
Notice that in the constructor we look for two EntityManagerFactories.
请注意,在构造函数中,我们查找了两个EntityManagerFactory。
You can download the actual source code for the constructor and prototype.
您可以下载构造方法和原型的源代码。
Note that the constructor takes a string argument, the name of the icon.
构造函数带有字符串参数—图标名称。
I would check the constructor.
我会检查构造函数。
This method is effectively the constructor.
该方法实际上就是构造函数。
The job of the constructor is to initialize an object.
构造函数的工作是初始化对象。
To create such a tuple, you must call the constructor.
若要创建此类元组,必须调用构造函数。
Add a simple constructor to the class, such as the constructor in Listing 2.
在类中添加一个简单的构造函数,如清单2中的构造函数。
Now we create a car by passing the engine and tires to the constructor.
现在,通过往构造函数中传入引擎和轮胎来创建一辆车。
For elements without a natural order, you can provide a Comparator to the constructor.
对于没有天然顺序的元素,可以为构造函数提供一个Comparator。
In the example shown here, the constructor accepts a string that represent the superclass name.
在我们的例子中,构造器接收了一个表示超类名称的字符串。
The constructor in the source code is coded this way.
源代码中的构造方法就采用这种方法。
The constructor can take a simple built-in numerical type or character data.
该构造函数可以接受简单的内置数值类型或字符数据作为参数。
The constructor can take a simple built-in numerical type or character data.
该构造函数可以接受简单的内置数值类型或字符数据作为参数。
应用推荐