至于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.
我在Craigslist(在商务器具类挂牌出售)发现过这种架子。
I found it on Craigslist (listed for sale in the business equipment category).
我更喜欢在类的内部说明类的运行时行为,将有关类的所有信息集中保存在一个地方。
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.
您还应当注意到,在示例里我一直调用实际的实现类来执行业务逻辑。
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.
在本文中,我用真正的类实现回调。
但是,我在创建修饰符时可以不用添加额外的基于类的方法结构。
But I can make a decorator without adding the extra structure of a class-based approach.
他的胡须一角抽动了一下,“我看你肯定是在莫名其妙类了,”他说道。
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.
比如说我喜欢在课外阅读不同的书籍,尤其是侦探类故事。
For example, I like reading different books in my spare time, especially some detective stories.
在遵循开闭原则的过程中,我期望能够写出一个类或者方法,在以后我回过头读它的时候,会很舒服地看到它能完成它的工作并且我也不需要再修改它。
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.
在我生活的中国,你很少会听到味精过敏一类的投诉。
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.
我认为,在我知道最终类的模样并实际使用过代码之前,我不想声明我的“客户们”可能需要什么。
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.
在本文的前面,我建议你以类来考虑分类器。
Earlier in this article, I suggested that you think of classifiers simply as classes.
不过作为一个免责声明,我一直在使用消费类硬件产品,而不是高端专业的东西。
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.
样本使用的是 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.
在随后的文章中,我更改了domain类,但是从未让您再回过头来生成视图。
In the subsequent articles, I made changes to the domain class and never had you go back and regenerate the views.
在随后的文章中,我更改了domain类,但是从未让您再回过头来生成视图。
In the subsequent articles, I made changes to the domain class and never had you go back and regenerate the views.
应用推荐