这些不同的使用方法类型称为使用方法。
The different, distinct types of use are called the methods of use. The different methods of use include
如果你不喜欢关键字参数,你可以定义一种新的不包含关键字参数的方法类型。
If you don't like keyword arguments, you can define a new method type that doesn't have them.
例如,我们不应期望文本编辑API的方法类型可以捕获所有与“只关闭打开的文件”类似的不变量。
For example, we shouldn't expect that the method types for a text-editing API would capture such invariants as "only opened documents can be closed."
从最初的观点可以区别出各种不同的方法类型,这几乎成了发现某个研究者的研究起点的方法。
Different types of approaches may be distinguished originating from different starting positions. It is almost a type of taste from which perspective a particular researcher begins.
虽然也可以在这个处理程序类中直接处理方法,但是更简洁的做法是将不同的方法类型(例如getter和setter)委托给不同的实现类。
It would be possible to handle methods directly in this handler class, but it's much cleaner to delegate different method types (getters and setters, for example) to different implementation classes.
在上述清单中,与Portlet相关的数据将以 bold 进行标记;该数据由方法类型 (detail)和以毫秒为单位的已用时间组成。
The portlet related data is marked in bold in the listing above; it consists of the method type (detail) and the elapsed time in milliseconds.
治疗方法可能会因受伤类型的不同而有很大差别。
The treatment regime may vary widely depending on the type of injury.
因此,新开发的粘合剂很可能成为固定大多数类型的切口的常规方法。
Consequently, it is likely that a newly developed adhesive will become the routine method of holding most types of cuts closed.
然而,该组织采取了与1999年相似的方法,即,一致反对儿童接触被动媒体或接触任何类型的屏幕。
Nevertheless, the group took largely the same approach it did in 1999, uniformly discouraging passive media use, on any type of screen, for these kids.
我认为他们发现这个方法非常有效,它还能帮助他们辨别他们的预算究竟属于哪种类型。
I think they found it very useful and it also helped them identify just what kind of budgets they had too.
你会在第二个方法处得到一个编译错误,因为这两个方法在类型消除后拥有一样的签名。
You'll get a compilation error on the second method because the two methods will have an identical signature after type erasure.
我们可以使用参数绑定来绑定方法参数,返回类型和异常,以及我们希望的目标。
We can use argument binding to bind method parameters, return types and exceptions as well as targets if we wish.
方法参数和返回类型必须是可序列化的。
The method parameters and return types must be serializable.
这些类提供了各种操作那些数据类型的方法。
These classes provide various methods for manipulating those data types.
元数据功能也可以指定一种定义注释类型的方法。
Optionally, a metadata facility can specify a way to define annotation types.
其次,您需要指定方法的输入和输出类型。
Second, you need to specify the input and output types for the method.
让我们来仔细探索一下这些可见性选项。为了简单,我们会使用字段来作为成员的例子。方法,类型声明的行为和字段是一致的。
Let's explore these visibility options in more detail. To keep things simple, we'll use fields for member examples. Method and type declarations behave the same way.
让我们来看一些需要显式声明方法返回类型的例子。
Let's look at examples where explicit declarations of method return types are required.
类型推断对方法也有用。
REST与HTTP紧密相关并利用了所有的http特性,比如方法、头和类型。
REST is closely associated with HTTP and leverages all HTTP features, such as methods, headers, and types.
许多时候,方法作为输入接受的或者作为输出返回的类型实际上不是该方法想要的类型。
Many times, a method accepts as input or returns as output a type that is actually not what the method wants.
然而,对于所有的方法参数来说,类型注解是必须的。
However, type annotations are required for all method parameters.
这包括每个方法的事务类型,甚至EJB是无状态 EJB 这一事实。
These include the transaction types for each method and even the fact that the EJB is a stateless EJB.
在大多数情况下,方法的返回类型可以被推断,所以“:”和返回类型可以被省略。
In most cases, the return type of the method can be inferred, so the ':' and return type can be omitted.
在之前的部分您已经了解了一种类型的访问方法,即索引扫描(IXSCAN),和一种类型的联接方法,即嵌套循环联接(NLJOIN)。
In the previous section you learned about one type of access method, index scan (IXSCAN), and one type of join method, nested loop join (NLJOIN).
查看表格1对不同类型方法元素的定义。
Refer to Table 1 for definitions of the different types of Method Elements.
方法描述符结合了字段描述符,以指定方法的参数类型和返回类型。
A method descriptor just combines field descriptors to specify the parameter types and return type of a method.
此组件用于通过各种方法列出数据元素类型。
This component is for listing a type of data element in a variety of ways.
经验法则是,应该使用与应用程序期望的集合类型最匹配的那个方法,以避免类型转换。
The rule of thumb is that you should use the one method that best matches the collection type the application is waiting for, so that type conversions are avoided.
经验法则是,应该使用与应用程序期望的集合类型最匹配的那个方法,以避免类型转换。
The rule of thumb is that you should use the one method that best matches the collection type the application is waiting for, so that type conversions are avoided.
应用推荐