在此之后,我们还将简单讨论一下类的垃圾回收;如果你对此已非常熟悉,则可以跳过这部分内容。
Once we've covered that, we'll briefly touch on garbage collection of classes; so if are comfortable with that, you can skip ahead.
在离开办公室之前,确认每个人都知道你不在的这段时间他们应该完成哪些工作,并且告诉你的员工把邮件分一下类并且把他们归纳成为可以采取的行动。
Before leaving the office, make sure everyone knows what needs to be done while you are gone and ask your staff to sort the mail and condense it to action items while you are away.
尝试一下非小说类和技术类书籍:这些不仅能迅速教会你说话的新方式,还能教会你思考的新方式。
Try nonfiction and technical books: these will rapidly teach you not only new ways to talk, but new ways to think.
他们转向如电视、电脑、互联网、录像带、光盘和音频设备一类的电子媒体,按下按钮就可自娱自乐。
They turn to electronic media such as television, computers, the Internet, videos, CDs and audio equipment, which can provide them with instant self-entertainment at the push of a button.
她犹豫了一下,不知道该将自己归为哪一类。
我们知道所有的对象搜索方法默认条件下都是在辅助类中执行。
We know that all the object finding methods are implemented in the helper classes by default.
默认情况下,这个类装入器是用户创建的任何类装入器的父类。
By default, this class loader is the parent of any class loader created by the user.
除了尚未实现某些程序库以外,这两种方式的主要差别在于静态模式下的类装载并不完全符合JVM行为。
Aside from some libraries that are not yet implemented, the major difference is that class loading in static mode will not exactly match the JVM behavior.
在某些情况下,类中的大多数方法需要携带注释(如版本4中所示)。
In certain situations most of the methods in a class need to carry an annotation (such as the one in Version 4).
在很多情况下,类的相互作用分析足以帮助发现问题,但是您偶尔可能需要进行更深入的对象级别的分析。
In most situations, class interaction analysis (available with the ARM agent) is enough to help find problems, but occasionally you will need to do further profiling at the object level.
有几种方法可以做到在不重新启动应用的情况下更新类,但每种方法都有其问题。
There are several ways to address the problem of updating changed classes within an application without restarting, but all come with different problems.
奶牛和人一样,也能在生长激素的作用下分泌类胰岛素生长因子,这种蛋白质被释放到血液里,从而进入到牛奶中。
Cows, like humans, produce insulin-like growth factor in response to growth hormones and release it into the blood, and the protein makes its way into their milk.
有时,要在不影响类的功能、易用性或性能的情况下使类成为线程安全的是很困难的。
Sometimes, it is very difficult to make a class thread-safe without compromising its functionality, ease of use, or performance.
在我结束对类型大小调整的讨论之前,我还希望提一下基类。
Before I conclude the discussion of the sizing of types, I also want to mention base classes.
在各种条件下,创建类时,也许想用比简单地运行静态编码更加动态的方法。
In various common situations, you may want to create classes in more dynamic ways than simply running static code for their creation.
对于本文,我们坚持严肃的立场:我们把在不用元类也能解决问题的情况下使用元类都视为元类滥用。
For this article, we take a ruthless stance: we consider metaclass abuse any usage of a metaclass where you could have solved the same problem equally well without a custom metaclass.
我们来看一下这些新类是如何工作的。
我们来通过一些代码示例按顺序看一下每个类。
Let's take a look at each class in turn with some code examples.
默认情况下,顶级类将生成一个与类名相同名称的文件。
By default, a top-level class is generated into a file with the same name as itself.
很多情况下,类中包含一个核心数据元素,通过它可以派生或找到类中的其他字段。
From time to time, a class contains a core element of data from which the rest of the class's fields can be derived or retrieved.
要将事件附加到页面元素或在特定情况下需要添加类时,通常需要这样做。
You're obviously used to doing this when you attach events to things, and for simple things like attaching classes in certain situations.
点一下这个类的名字,你将发现在这个对话框的右边会出现上下箭头。
Click the name of the class and you'll see that up and down arrows appear on the right side of the dialog box.
有必要区分一下两类不同的比赛。
It is necessary to differentiate between two kinds of fights.
默认情况下,类通常是可串行化的。
这种情形下,类木行星的形成就只需要几千年的时间,远在天体物质被星系抛射出去。
In this case, the formation of Jupiter-mass worlds may only take a few thousand years to form, well before the planet-building materials are ejected from the system.
可以看到,默认情况下patient类仅仅扩展了ActiveRecord。
As you can see, by default the Patient class simply extends ActiveRecord.
以下条件下“附属”类上的迭代。
然而,在业务接口模式下,实现类还将需要实现新的业务接口(在这种情况下,是ILibrary接口)。
Under the business interface pattern, however, the implementation classes will also need to implement your new business interface (in this case, the ILibrary interface).
在默认情况下,Morphia使用类名称来命名集合。
Morphia, by default, USES the class name to name the collection.
在默认情况下,Morphia使用类名称来命名集合。
Morphia, by default, USES the class name to name the collection.
应用推荐