• Instance initializers allow you to execute construction code for an anonymous inner class.

    实例初始化器允许一个匿名内部执行构造代码

    youdao

  • I find that style difficult to read and test, so I created a named inner class.

    发现这种风格难于读取测试所以创建了一个有名称内部

    youdao

  • The code in Listing 1 would be much neater if the anonymous class was placed separately as an inner class.

    如果这个匿名作为一个内部类单独放置,那么清单1中的代码简洁很多

    youdao

  • Make an inner class in the parent class, which is a test case.

    建立一个内部类,这个内部类是个测试用例。

    youdao

  • This is an improvement over having to write a class any time an anonymous inner class is needed and can help keep the code more self-documenting.

    相比于每个匿名内部对应一个类的做法来说,这种方式是个极大的改进同时使得代码可读性更好

    youdao

  • The recommended approach is to use static inner classes, if you must use an inner class at all.

    推荐做法如果非要使用内部类的话,请使用静态内部

    youdao

  • The first set of enclosing braces delineates the construction of an anonymous inner class, and the second set delineates the instance initializer for the anonymous inner class.

    第一闭合括弧划定一个匿名内部构造第二组划定匿名内部类实例初始化语句块

    youdao

  • The event handling method of the inner class is shown in Listing 2.

    内部事件处理方法如清单2

    youdao

  • The CICE proposal is a simpler proposal that addresses the problem that instantiating inner class instances is too cumbersome.

    CICE方案要简单多,解决实例内部实例不太灵活的问题

    youdao

  • Two things are worth mentioning when considering this code: First, the instantiation of an anonymous inner callback class requires a great amount of boilerplate code.

    上面代码两点值得我们注意:首先匿名内部回调类实例化需要大量样板代码。

    youdao

  • This new inner class helps us to understand and use the following two pairs of new methods in thread.

    新的内部可以帮助我们了解下列方法有助于我们Thread中使用它们。

    youdao

  • Here, the ActionListener implementation is defined in place, as an anonymous inner class, and directly attached to the button.

    这里ActionListener实现适时定义的,它定义一个匿名内部直接附加按钮

    youdao

  • For example, the semantics of return, break, and this are different in a block of code than they are in a Runnable (or other inner class instance) that represents the same block of code.

    比如returnbreakthis代码中的语义与其在Runnable(其他内部实例)中同一代码块中的语义不同

    youdao

  • For each parameter that has a dependency on other parameters, add a PatternDependencyDelegate statement to the constructor of the parameter's dependency inner class (see Listing 3). In this case.

    对于每个依赖其他参数参数而言,要为参数内部依赖的构造函数增加PatternDependencyDelegate声明(参看列表3)。

    youdao

  • You are returning an instance of JsonRecordWriter, an inner class that will get a line of data from Listing 3 and produce a line of data in Listing 4.

    正在返回JsonRecordWriter实例是一个内部,用于清单3获取数据生成清单4中的数据。

    youdao

  • Often this means the proxy will need to be an inner class of Person to have access to private fields.

    通常意味着代理需要Person一个内部,以便访问private字段

    youdao

  • The MqttSimpleCallback interface is implemented with an inner class.

    MqttSimpleCallback接口使用内部实现的。

    youdao

  • An inner class is added to implement the MqttSimpleCallback interface, and the registration of that handler.

    添加内部实现MqttSimpleCallback接口回调处理程序注册

    youdao

  • To change what our view displays, modify the default code for the ViewContentProvider inner class.

    更改视图显示修改ViewContentProvider内部默认代码

    youdao

  • The OGAdmin class contains several inner classes.

    ogadmin包含多个内部

    youdao

  • I'm left with some ugly boilerplate code because of the anonymous inner class wrapping this method's real purpose - the two lines of code that appear in the body of the addOrderFrom method.

    考虑到包装这个方法匿名内部真正用途留下难看样板代码addorderfrom方法中的行代码。

    youdao

  • The addOrderFrom() method collapses to the definition of an anonymous inner class creation of the command class, wrapping the two work items.

    addOrderFrom()方法成为公共匿名内部创建定义,将两个工作项目包装起来。

    youdao

  • The only thing a class needs to be used this way is a default constructor (which allows you to create an anonymous inner class instance inheriting from your class).

    惟一需要这种方式使用一个默认构造函数允许创建继承类的匿名内部类)。

    youdao

  • This restriction is lifted in Groovy; you can change the values of variables in a containing scope from within an anonymous inner class.

    Groovy消除了这种限制Groovy匿名内部可以修改外部变量

    youdao

  • An inner class has been implemented for query (lines 31-44) to map returned the ResultSet object to the User object.

    查询实现一个内部(31 - 44)将ResultSet对象映射User对象。

    youdao

  • And the service-oriented inner class is SERVICE_FORMATTED.

    面向服务内部SERVICE_FOR MATTED。

    youdao

  • The visitor is implemented in an inner class (aptly called Visitor).

    访问者一个内部称为Visitor 比较好)中实现的。

    youdao

  • Otherwise, an inner class will be created to store that element's contents (see name, phone and salary in Listing 9).

    否则创建一个内部存储元素内容(清单9中的namephonesalary)。

    youdao

  • The magnification itself is made by the MagnifiedIcon inner class (lines 95 through 113).

    真正放大工作 MagnifiedIcon这个内部来做的(第95行到第113行)。

    youdao

  • The class under test is MyNewClass class (shown here as a private inner class).

    测试mynewclass类(在这里显示私有内部类)。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定