The OGAdmin class contains several inner classes.
ogadmin类包含多个内部类。
The MqttSimpleCallback interface is implemented with an inner class.
MqttSimpleCallback接口是使用内部类实现的。
The visitor is implemented in an inner class (aptly called Visitor).
访问者是在一个内部类(称为Visitor 比较好)中实现的。
Nails are an easy way either to reflect one's inner class or inner trash.
一个人的内在素养能通过指甲轻易体现出来。
I find that style difficult to read and test, so I created a named inner class.
我发现这种风格难于读取和测试,所以我创建了一个有名称的内部类。
Field in the inner class hides a field with the same name in the outer class.
内部类中的域在外部类中覆盖了一个相同名字的域。
The magnification itself is made by the MagnifiedIcon inner class (lines 95 through 113).
真正的放大工作是由 MagnifiedIcon这个内部类来做的(第95行到第113行)。
The recommended approach is to use static inner classes, if you must use an inner class at all.
推荐的做法是如果非要使用内部类的话,请使用静态内部类。
To change what our view displays, modify the default code for the ViewContentProvider inner class.
要更改视图显示,修改ViewContentProvider内部类的默认代码。
Sometimes you need to write a subclass (often as an inner class) in order to test protected methods.
有时需要编写一个子类(通常作为内部类)来测试protected 的方法。
This new inner class helps us to understand and use the following two pairs of new methods in thread.
新的内部类可以帮助我们了解下列两对新方法,并有助于我们在Thread中使用它们。
Often this means the proxy will need to be an inner class of Person to have access to private fields.
这通常意味着代理需要是Person的一个内部类,以便能访问private字段。
The code in Listing 1 would be much neater if the anonymous class was placed separately as an inner class.
如果这个匿名类可被作为一个内部类单独放置,那么清单1中的代码将会简洁很多。
In this code, the inner class MyInputValidator is responsible for validating input into the acronym list.
在这段代码中,内部类MyInputValidator负责验证缩略词列表的输入。
An inner class is added to implement the MqttSimpleCallback interface, and the registration of that handler.
添加内部类以实现MqttSimpleCallback接口和回调处理程序的注册。
In fact, an anonymous inner class can't even extend a class and implement an interface at the same time.
事实上,一个匿名内部类甚至不能同时扩展一个类和实现一个借口。
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对象。
Otherwise, an inner class will be created to store that element's contents (see name, phone and salary in Listing 9).
否则,将创建一个内部类来存储此元素的内容(见清单9中的name、phone和salary)。
HandleEvent — in the inner class, provides the logic that is invoked when pressing the command button SWT widget.
handleEvent——在inner类中,提供了当点击SWT小窗口命令按钮时调用的逻辑。
Why the call to the parent constructor is not the first call in the compiler generated constructor for Inner class?
为什么调用父类的构造函数不在编译器的第一个调用生成内部类的构造函数?
For example, only final object references from the outer class are invokable within the body of the anonymous inner class.
例如,在匿名内联类的主体中,只能调用外部类中的final对象引用。
The CICE proposal is a simpler proposal that addresses the problem that instantiating inner class instances is too cumbersome.
CICE方案要简单得多,它解决了实例化内部类实例不太灵活的问题。
Here, the ActionListener implementation is defined in place, as an anonymous inner class, and directly attached to the button.
这里,ActionListener实现是适时定义的,它定义为一个匿名内部类,并直接附加到按钮上。
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中,匿名内部类可以修改外部的变量值。
The inner class code calls these static methods whenever it needs to access the mValue field or invoke the doStuff method in the outer class.
内部类会在外部类中任何需要访问mValue字段或调用doStuff方法的地方调用这些静态方法。
The addOrderFrom() method collapses to the definition of an anonymous inner class creation of the command class, wrapping the two work items.
addOrderFrom()方法成为公共类的匿名内部类创建的定义,将这两个工作项目包装起来。
Inner classes can refer to mutable instance fields if the inner-class expression occurs in an instance context, but this is not the same thing.
如果内部类表达式出现在某个实例上下文中的话,内部类可以引用可变的实例域instance field,但这不是同一回事。
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.
相比于每个匿名内部类都要对应一个类的做法来说,这种方式是个极大的改进,同时也使得代码的可读性更好。
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中的一行数据。
This feature is richer than function Pointers because it allows the inner class instance to retain a reference to the environment in which it was created.
该特性比函数指针更强大,因为它允许内部类实例保持对创建它的环境的引用。
应用推荐