In this case, it will offer to create a class field I, a local variable I, or a method parameter I; clicking each of these Suggestions will display the code that would be generated.
在此例中,它将提供创建一个类字段i、一个局部变量i或一个方法参数i的建议;单击其中的每一个建议都会显示将要生成的代码。
In this case, it will offer to create a class field I, a local variable I, or a method parameter I; clicking on each of these Suggestions will display the code that would be generated.
在此例中,它将提供创建一个类字段i、一个局部变量i或一个方法参数i的建议;单击其中的每一个建议都会显示将要生成的代码。
In the case of generic methods, if a type parameter appears only once in the method signature, then it probably should be a wildcard rather than a named type parameter.
就泛型方法来说,如果一个类型参数在方法签名中只出现一次,它很有可能是一个通配符而不是一个命名的类型参数。
The method takes a parameter, specifying the length of the timeout, and a code block, specifying which content to rebuild when the content expires.
此方法接受参数,用来指定超时的时长,它还接受一个代码块,用来指定当内容过期时哪些内容需要重建。
Basically, whenever the last argument of a method is an array of objects, or a parameter declaration with a triple dot, you can pass multiple parameters to this method.
基本上,只要当一个方法的最后一个参数是一个对象数组,或者是一个有三个点的参数,你就可以向这个方法传入多重参数。
The methodology requires transforming each entry into a method and transforming each parameter into an XML data element.
此方法要求将每个条目转换为方法,将每个参数转换为XML数据元素。
You will also need to create a method that USES the template parameter.
您也需要创建一个用到该模板参数的方法。
The calling component instantiates an object — deliberately not called a value object — that implements these interfaces and USES this object as a method parameter in both method calls.
调用组件将实现这些接口的对象(故意不称之为值对象)实例化,并在这两个方法调用中将该对象用作方法参数。
The method takes a string parameter, enclosed in quotes, and a code block.
该方法具有一个使用引号括起来的字符串参数和一个代码块。
Start the installation with a parameter set for the installation method (auto install or interactive).
设置一个安装方法参数(自动安装或交互安装),开始安装。
If you don't want to pass in a parameter, you could add a method with which the client can query the thread ID of the called program.
如果不希望传入一个参数,您可以添加一个方法,客户机可以使用该方法来查询被调用程序的线程ID。
In this particular sample, the asserted identity for the server side is simply sent as a method parameter of the remote invocation.
在这个特定的示例中,服务器端的断言标识作为远程调用的方法参数发送。
When compared, a noted advantage of using XML tags is their ability to use default values for attributes, while programming languages offer limited possibilities to omit a method parameter.
对比起来,使用XML标记的一个明显优点就是它们能为属性使用默认值,然而编程语言只提供了有限的可能性来删除方法参数。
This way, the calling component can use any object it likes as a method parameter, as long as the object implements the interface.
这样,只要对象实现该接口,调用组件就可以将其想使用的任何对象用作方法参数。
In this example, a extends B; however, the same error would still occur if a referenced B in any other way — as a method parameter, for example, or as an instance field.
在这个例子中,A扩展了b;但是,即使A用其他方式引用B,也会出现同样的问题——例如,以方法参数引用或作为实例字段。
This is done by creating MIME attachments by using SOAPContext 'reponse' object, which is a parameter to 'document' based method calls.
通过使用SOAPContext的“reponse”对象(该对象是基于“文档”的方法调用的参数)创建MIME附件可以实现这一点。
When using inline methods, you can invoke methods defined in the data interface and pass the SQL statement as a parameter in the invocation of a method.
当使用内联方法编程风格时,用户可以调用Data接口中定义的方法,将sql语句作为方法调用中的一个参数。
The solution here is to provide a method parameter with a factory method for the items to read, as shown in Listing 2.
这里的解决方案是为要读取的条目提供一个带工厂方法的方法参数,如清单2所示。
The solution to this is to add a new variation of the setDirty method that takes a String parameter.
解决这个问题的方案,是添加一个带有 String 参数的setDirty方法的新变量。
Hen you need to collect results over several methods, you should add a parameter to the method and pass an object that will collect the results for you.
如果需要收集多个方法的结果,应该在方法中添加一个参数传递收集结果的对象。
Once the properties are filled in, props is simply passed as a parameter to the ORB.init method.
一旦填入了属性,props就只作为一个参数传递给OR B .init方法。
From your studies so far, you know that Groovy closures are code blocks that can be referenced, parameterized, passed as a method parameter, and delivered as the return value from a method call.
学习至今,您知道了Groovy闭包是代码块,可以被引用、带参数、作为方法参数传递、作为返回值从方法调用返回。
Has_many is a static method call for which the symbol: items is a parameter.
has_many是一个静态方法调用,符号:items是它的参数。
While this code is specific to a Printer, it is oblivious to whether the test is for printing or initialization, or to whether Printer is the target of a method call or a parameter to a method.
虽然这段代码是针对Printer的,但无论测试的是打印还是初始化,无论printer是方法调用的目标还是方法参数,都没有关系。
Finally, another constraint on named parameters is that once you provide a name for a parameter in a method invocation, then the rest of the parameters appearing after it must also be named.
最后,还有一个对命名参数的约束就是一旦你为一个方法掉哦那个指定了参数名称,那么剩下的在这个参数之后的所有参数都必须是命名参数。
Another example: the user identity is passed as a parameter defined in the method signature.
另一个示例:用户标识作为方法签名中定义的参数进行传递。
The first parameter (a string) is the name of the action method and the second parameter (also a string) is the name of the controller.
第一个参数(字符串)是动作方法的名称,第二个参数(也是字符串)是控制器的名称。
Second, as Listing 4 shows, the invoked method can also have a return parameter.
第二,如清单4所示,调用的方法也可以拥有返回参数。
The latter method accepts a currency code as a second parameter.
后者的这个方法接受货币代码作为其第二个参数。
The latter method accepts a currency code as a second parameter.
后者的这个方法接受货币代码作为其第二个参数。
应用推荐