至于followpos,我在类构造器中添加了一个取值(方法)和新代码。
As for followpos , I have added an accessor and new code in the class constructor.
更改代码之后,我就可以在运行时随意利用Kilim了,只要我在类路径中包含了它的.jar文件。
After the code has been altered, I'm free to start leveraging Kilim at runtime provided I've included its.jar file in my classpath.
我更喜欢在类的内部说明类的运行时行为,将有关类的所有信息集中保存在一个地方。
I prefer specification of the runtime behavior of a class within the class itself, keeping all the information about a class in one place.
是的,我可以在类中添加一个新的成员字段,并使用这个字段而不是局部变量。
Well, I could add a new member field to the class and use that instead of a local variable.
您不需要启用日志记录,不过在这里我将说明在您决定使用日志记录时在类路径中需要哪些配置和JAR文件。
You do not need to enable logging, but here, I demonstrate which configuration and JAR files you need in the classpath should you decide to use it.
您还应当注意到,在示例里我一直调用实际的实现类来执行业务逻辑。
You should also notice in the example that I always call an actual implementation class to perform the business logic.
在我一生中最悲惨的一个时期,我曾经有过那类的想法:去年夏天在我回到这儿附近的地方时,这想法还缠着我;可是只有她自己的亲自说明才能使我再接受这可怕的想法。
At a most miserable period of my life, I had a notion of the kind: it haunted me on my return to the neighbourhood last summer; but only her own assurance could make me admit the horrible idea again.
也许她只是下楼去安慰她的老鸨,我有一种感觉,一件不寻常的事情正在发生,这将是我在晨报上读到的那类戏剧性轶事。
Perhaps she was just going downstairs to quiet her maquereau. I had a feeling that something unusual was happening, some sort of drama which I would read about in the morning paper.
我认为,在普通的书店,不会有人毫无顾忌地选择这一类书,这就是我将书店搬到网络上的原因。
I think one would hesitate to pick up books like this in a normal retail space, which is why I did it online.
在本文中,我用真正的类实现回调。
他的胡须一角抽动了一下,“我看你肯定是在莫名其妙类了,”他说道。
The corners of his moustache twitched. "it was definitely in the 'ridiculous' category," he said.
例如,我喜欢根据类的命名空间在文件系统(和项目)中安排文件。
For instance, I like to lay out the files in the file system (and project) according to the namespace of the class.
在遵循开闭原则的过程中,我期望能够写出一个类或者方法,在以后我回过头读它的时候,会很舒服地看到它能完成它的工作并且我也不需要再修改它。
In following the Open Closed Principle, I want to be able to write a class or a method and then turn my back on it, comfortable that it does its job and I won't have to go back and change it.
同时提供接口和抽象类是多余的,但我发现这样很方便:在大多数情况下,我只需要抽象类,但接口支持多继承性。
Offering both an interface and an abstract class is redundant, but I find it convenient: in most cases, I only need the abstract class, but the interface enables multiple inheritance.
相反的,我将会把重点集中在每种关联的用途,并说明如何在类图上画出关联。
Instead, I will focus on the purpose of each association type and show how the association is drawn on a class diagram.
在我生活的中国,你很少会听到味精过敏一类的投诉。
In China, where I live, you don't hear many complaints about MSG allergy.
尽管我能记住八个单独的文本部分,对其进行对比和回显,但我搞不清楚在我所设计的类及其接口之外的程序的意义。
While I can keep eight separate sections of text in my mind and contrast and echo them, I can't make sense of a program beyond the classes I design and their interfaces.
在本文中,我将为您介绍构建更好的dao类的DAO实现策略和技术。
In this article, I'll introduce you to DAO implementation strategies and techniques for building better DAO classes.
我解释的大部分概念也将适用于在类库dll中使用资源文件。
Most of the concepts I explain will apply to using resource files in a class library DLL as well.
我认为,在我知道最终类的模样并实际使用过代码之前,我不想声明我的“客户们”可能需要什么。
I figure that until I know the final class shapes and have a little practical usage of the code, I don't want to declare what my clients might need.
不过作为一个免责声明,我一直在使用消费类硬件产品,而不是高端专业的东西。
As a disclaimer, though, I've been using consumer hardware, not high-end professional stuff.
我是属于实践类的教授,在麻省理工学院,在核科学与工程系里。
I'm a professor of the practice here at the Massachusetts Institute of Technology in the nuclear science and engineering department.
我将会回顾那些你在浏览源文件时或多或少会碰到的类。
I'm going to go over these classes in more or less the order you'd encounter them by going through the the sample source files.
相反,我创建类并快速在类中输入私有变量,如清单1所示。
Instead, I create the class and quickly type the private variables I'll be using in the class, like those in Listing 1.
我在本文讨论的Joda类具有不可变性,因此它们的实例无法被修改。
The Joda classes I discuss in this article are immutable, so instances of them cannot be modified.
当我使用Groovy插件的时候,我必须能够在包中声明我的领域类,然而JetBrains插件不能处理这个问题。
When it comes down to it I must be able to declare my domain classes in packages and the JetBrains plugin can't handle that.
因此在清单2中,我使用基础的user类和所需的名称发出一个get调用。
Thus, in Listing 2, I issue a call to get with the underlying User class and the desired name.
样本使用的是 WSRL 助手类(WSRLHelper ),我已经将其包括在样本代码之中。
The sample uses a WSRL Helper class (WSRLHelper), which I have included in the sample code.
我解决这个问题的方法是在xmlstring类中增加两个静态放弃函数。
My fix for this was to add a pair of static discard functions to the XMLString class.
我解决这个问题的方法是在xmlstring类中增加两个静态放弃函数。
My fix for this was to add a pair of static discard functions to the XMLString class.
应用推荐