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的建议;单击其中的每一个建议都会显示将要生成的代码。
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 solution here is to provide a method parameter with a factory method for the items to read, as shown in Listing 2.
这里的解决方案是为要读取的条目提供一个带工厂方法的方法参数,如清单2所示。
应用推荐