Figure 6 shows a ship operation with an order type parameter that is not present in the ship order operation.
图6显示了具有订单类型参数的船舶操作,该参数在船舶订单操作中不存在。
Listing 1. New operation on a "naked" type parameter.
清单1.“裸”类型参数的New操作。
It would end up extending the bound of the type parameter!
该类会最终继承类型参数的界限!
Require a zeroary constructor for all type parameter instantiations.
需要一个不带参数的(zeroary)构造函数,用于所有类型参数的实例化。
You can also change the type parameter to amazon to see the other data.
还可将type参数改为amazon来查看其他数据。
He sees that the bound on d's type parameter is the default bound (Object).
他知道D的类型参数的界限是缺省界限(Object)。
Accessing type parameter information through reflection is somewhat complex.
通过反射访问类型参数信息有些复杂。
Which means that the type parameter of the Box can be t or any subclass of t.
这表示Box的类型参数可以是t或t的任何子类。
Its input type comes from the type parameter of the AsyncTask that you create.
它的输入类型来自您所创建的AsyncTask的类型参数。
Providing a data type parameter with the as attribute already traps many errors.
通过a s属性提供数据类型参数已经捕捉了许多错误。
Require all instantiations of a type parameter to include a zeroary constructor.
要求类型参数的所有实例化都包括不带参数的(zeroary)构造函数。
The type parameter of that function allows a DER-encoded certificate to be loaded.
这个函数的type参数让我们可以加载使用 DER 编码的证书。
These annotations tell us exactly what constructors we can reliably call on a type parameter.
这些注释确切地告知我们针对类型参数,我们可以可靠地调用什么样的构造函数。
Similarly, it returns an ArrayList because that is the third type parameter of the AsyncTask.
类似地,它返回一个ArrayList,因为这是AsyncTask的第三个类型参数。
In other words, the type parameter is a string consisting of casting, trolling, or other.
换句话说,type参数是包含casting、trolling或o ther的字符串。
Then the type parameter instantiations would be inferred automatically from the method arguments.
然后会自动地从方法参数中推断出类型参数的实例化。
You passed something known to be a t, an unconstrained type parameter, and hence it could be anything.
你只是传递了类型T,一个没有约束的类型参数,所以它可以是任何类型。
If you instantiate a Box using the BoxImpl.make factory, you need only specify the type parameter once.
如果使用BoxImpl .make工厂实例化一个Box,您只需要指定一次类型参数。
But this code does not work — you cannot instantiate an array of a type represented by a type parameter.
但是这段代码不能工作——不能实例化用类型参数表示的类型数组。
Needless to say, this corresponds to the type parameter accepted by the Web service operation (retrieveByType).
不用说,这对应于Web服务操作(retrieveByType)接收的type参数。
Despite this identical bytecode, the type parameter information is recorded in the class format using a new signature attribute.
尽管是相同的字节码,但是类型参数信息用一个新的签名(signature)属性记录在类模式中。
The first part of the signature (within the angle brackets '<...>') is just the list of type parameter definitions for the class.
签名的第一部分(位于尖括号 ‘<...>’ 内)就是该类的类型参数定义清单。
With mixins formulated as generic classes, we always have a handle on the parent class, the type parameter that the class extends.
将mixin明确表述为泛型类,我们就始终有父类的句柄,它是该类继承的类型参数。
The GenericTemplate instance holds the basic type parameter information for the class, along with the array of fields defined for the class.
GenericTemplate实例包含类的基本类型参数信息,还有为类定义的字段的数组。
Wildcards - the funky question marks where a type parameter should go - are a means of expressing a type constraint in terms of an unknown type.
通配符—使用一个奇怪的问号表示类型参数—是一种表示未知类型的类型约束的方法。
Box is parameterized by a type parameter t, which signifies the type of the contents of the box; a box can contain only elements of type String.
Box由类型参数t参数化,该参数表示Box内容的类型,Box只能包含String类型的元素。
These each take the form of a type parameter name followed by the field descriptors for the class bound and interface bounds (if any) of the type.
这些定义的形式都相同,类型参数名称后接类型的类边界和接口边界(若存在)的字段描述符。
Of course, we could simply leave off the explicit bound and just make sure that we never instantiate the type parameter with an inappropriate type.
当然,我们可以完全不使用显式的范围,只要能确保没有用不适当的类型来实例化类型参数。
You are allowed to specify the value of the type parameter if you like, but only if you can name the type - and the capture types are not denotable.
如果愿意,您可以指定类型参数的值,但只有当您能够命名该类型时才可以这样做—并且不能够表示捕获类型。
Thus, when a type parameter t is used as the superclass of a generic class, the annotation on t tells us exactly what super-constructors we can call.
因此,当类型参数t用作泛型类的超类时,T的注释确切地告知我们可以调用哪些超级构造函数。
应用推荐