Note: Technically speaking, anonymous classes have names that are generated by the compiler.
注意:从技术角度考虑,匿名类也拥有类型名称,该类型名称是由编译器自动生成的。
When creating anonymous classes, programmers can use the modifier "Key" to indicate which fields are immutable.
当创建匿名类型时,程序员可以用关键词“Key”表示哪些字段是稳定的。
Anonymous classes are like a bucketful of cold water that's spilled in your lap every time you want to use them.
匿名类就像是满满一桶冰水,每次用的时候都会洒到您的腿上。
If you need a quick tutorial on enums, generics, anonymous classes, and other useful features, you'll want to read this chapter.
如果你需要关于枚举、属性、隐藏种类及其他一些特点的快速指南,可以阅读这一章。
This allows the use of set operations to build up complex classes from anonymous classes or classes with value restrictions.
这样就允许我们通过使用集合操作来从匿名类或具有值约束的类来创建复合类。
Use a custom SecurityManager or ClassLoader that prevents loading of anonymous classes or other classes not under your direct control.
使用定制的SecurityManager或ClassLoader阻止加载匿名类或其他无法直接控制的类。
What's useful about this class is that you can use anonymous classes to override only the methods you want; the rest of the methods are implemented by default.
它的作用在于,您可以使用匿名类来替代您所希望替代的方法;剩下的方法会按默认方式实现。
Anonymous classes let you create objects that capture part of the environment in which they were defined, but objects and blocks of code are not the same thing.
匿名类允许创建这样的对象,该对象能够捕获定义它们的一部分环境,但是对象和代码块不一样。
One of the advantages of using code blocks over a similar mechanism like anonymous inner classes lies in its conciseness.
在类似匿名内部类的机制中使用代码块的一个优势是其简洁性。
Callback examples in most GWT books and online tutorials are implemented as anonymous inner classes.
大多数GWT书籍和在线教程中的回调示例是用匿名内部类实现的。
Primarily, you can use anonymous inner classes to implement closures.
可以使用匿名的内部类来实现闭包。
The CLR itself doesn't have any notion of anonymous types and sees them as normal classes with automatically generated names.
CLR自己对匿名类型没有什么概念,只是把它们看作有着自动产生名字的普通类。
No more ugly anonymous inner classes: just use closures through those shortcut methods!
不再有丑陋的匿名内部类:只要通过这些便捷方法使用闭包就可以!
The indirection, which is based on "advanced compilation techniques (like abstract bytecode)" results in one master class and several anonymous, JIT enabled support classes.
该间接产物基于“高级编译技术(类似抽象字节码)”,会产生一个主类和几个匿名类、以及一些启用JIT的支持类。
But anonymous inner classes give you only a loose approximation of closures, and they don't go as far as you need to go.
但匿名内部类只是宽泛地近似于闭包,它们并没有深入到您需要的程度。
In every Wicket application source code you will find anonymous inner classes.
每个Wicket应用的源代码中都会发现匿名的内部类。
You must understand how anonymous inner classes work (the inline declaration of the Command subclass) and understand the implications of the execute method.
您必须理解匿名内联类是如何工作的(Command子类的内联声明),并理解execute方法的含义。
As I probably mentioned before, you'll frequently see AsyncCallback classes defined as anonymous inner classes.
我以前可能提到过,您将经常看到定义为匿名内部类的asynccallback类。
An anonymous actor such as an initiator or facilitator may also result in the addition of classes.
诸如启动器或代理这样的匿名参与者也会使一些类被添加进来。
These are classes that execute user code, often a delegate to some method (which might be anonymous), when certain conditions are met.
这些类用来在当特定情况出现时执行用户代码(用户代码通常是某个方法的delegate)。
Anonymous inner class are local inner classes that don't have a class name.
匿名内部类是局部的内部类,它没有名字。
Methods An anonymous questionnaire was conducted on 1 040 internet users, who were cluster stratified sampled from 20 classes in Changsha colleges.
方法采用分层整群随机抽样的方法,从长沙地区高校中随机抽取20个班级,对所选班级的上网大学生进行现场无记名问卷调查。
Methods An anonymous questionnaire was conducted on 1 040 internet users, who were cluster stratified sampled from 20 classes in Changsha colleges.
方法采用分层整群随机抽样的方法,从长沙地区高校中随机抽取20个班级,对所选班级的上网大学生进行现场无记名问卷调查。
应用推荐